Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mv_webout.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mm_webout macro
4
5 <h4> SAS Macros </h4>
6 @li mf_getuniquefileref.sas
7 @li mv_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%mv_webout(OPEN,fref=&fref,stream=N)
19%mv_webout(ARR,some,fref=&fref,stream=N)
20%mv_webout(OBJ,datasets,fref=&fref,stream=N)
21%mv_webout(CLOSE,fref=&fref,stream=N)
22
23data _null_;
24 infile &fref;
25 input;
26 putlog _infile_;
27run;
28
29libname test JSON (&fref);
30data root;
31 set test.root;
32 call symputx('checkval',sysvlong);
33run;
34data alldata;
35 set test.alldata;
36run;
37
38%mp_assert(
39 iftrue=(%str(&checkval)=%str(&sysvlong)),
40 desc=Check if the sysvlong value was created
41)