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
14**/
15
16/* first create a service */
17
18%let item=%mf_uid();;
19
20%global test1;
21%let test1=FAIL;
22
23filename ft15f001 temp;
24parmcards4;
25 %let test1=SUCCESS;
26;;;;
27%mx_createwebservice(path=&mcTestAppLoc/temp,name=&item)
28
29%mx_getcode(&mcTestAppLoc/temp/&item,outref=testref1)
30
31%inc testref1/lrecl=1000;
32
33%mp_assert(
34 iftrue=(&test1=SUCCESS),
35 desc=code was successfully fetched,
36 outds=work.test_results
37)