Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
ms_webout.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing ms_webout macro
4
5 <h4> SAS Macros </h4>
6 @li mf_getuniquefileref.sas
7 @li ms_webout.sas
8 @li mp_assert.sas
9
10**/
11
12
13%let fref=%mf_getuniquefileref();
14%global _metaperson;
15data some datasets;
16 x=1;
17run;
18%ms_webout(OPEN,fref=&fref)
19%ms_webout(ARR,some,fref=&fref)
20%ms_webout(OBJ,datasets,fref=&fref)
21%ms_webout(CLOSE,fref=&fref)
22
23libname test JSON fileref=&fref;
24data root;
25 set test.root;
26 call symputx('checkval',sysvlong);
27run;
28data alldata;
29 set test.alldata;
30run;
31
32%mp_assert(
33 iftrue=(%str(&checkval)=%str(&sysvlong)),
34 desc=Check if the sysvlong value was created
35)