Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mx_getcode.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mx_getcode.test.sas macro
4
5 Be sure to run <code>%let mcTestAppLoc=/Public/temp/macrocore;</code> when
6 running in Studio
7
8 <h4> SAS Macros </h4>
9 @li mf_uid.sas
10 @li mp_assert.sas
11 @li mx_createwebservice.sas
12 @li mx_getcode.sas
13 @li mx_testservice.sas
14
15**/
16
17/* first create a service */
18
19%let item=%mf_uid();;
20
21%global test1;
22%let test1=FAIL;
23
24filename ft15f001 temp;
25parmcards4;
26 %let test1=SUCCESS;
27;;;;
28%mx_createwebservice(path=&mcTestAppLoc/temp,name=&item)
29
30%mx_getcode(&mcTestAppLoc/temp/&item,outref=testref1)
31
32%inc testref1/lrecl=1000;
33
34%mp_assert(
35 iftrue=(&test1=SUCCESS),
36 desc=code was successfully fetched,
37 outds=work.test_results
38)