Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mm_spkexport.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 mm_spkexport.sas
7 @li mp_assert.sas
8 @li mp_as
9
10**/
11
12
13%* create sample text file as input to the macro;
14filename tmp temp;
15data _null_;
16 file tmp;
17 put '%let mmxuser="sasdemo";';
18 put '%let mmxpass="Mars321";';
19run;
20
21filename myref "%sysfunc(pathname(work))/mmxexport.sh"
22 permission='A::u::rwx,A::g::r-x,A::o::---';
23%mp_assertscope(SNAPSHOT)
24%mm_spkexport(metaloc=%str(/Shared Data)
25 ,outref=myref
26 ,secureref=tmp
27 ,cmdoutloc=%str(/tmp)
28)
29%mp_assertscope(COMPARE)
30
31data _null_;
32 infile tmp;
33 input;
34 putlog _infile_;
35 call symputx('nobs',_n_);
36run;
37
38%mp_assert(
39 iftrue=(&nobs>2),
40 desc=Check if content was created
41)