Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mm_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 mm_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%mm_webout(OPEN,fref=&fref)
19%mm_webout(ARR,some,fref=&fref)
20%mm_webout(OBJ,datasets,fref=&fref)
21%mm_webout(CLOSE,fref=&fref)
22
23libname test JSON (&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)