Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_cntlout.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_cntlout.sas macro
4
5 <h4> SAS Macros </h4>
6 @li mf_nobs.sas
7 @li mp_cntlout.sas
8 @li mp_assert.sas
9 @li mp_assertscope.sas
10
11**/
12
13libname perm (work);
14data work.loadfmts;
15 length fmtname $32;
16 eexcl='Y';
17 type='N';
18 do i=1 to 100;
19 fmtname=cats('SASJS_',i,'X');
20 do j=1 to 100;
21 start=cats(j);
22 end=cats(j+1);
23 label= cats('Dummy ',start);
24 output;
25 end;
26 end;
27run;
28proc format cntlin=work.loadfmts library=perm.testcat;
29run;
30
31%mp_assertscope(SNAPSHOT)
32%mp_cntlout(libcat=perm.testcat,cntlout=work.cntlout)
33%mp_assertscope(COMPARE)
34
35%mp_assert(
36 iftrue=(%mf_nobs(work.cntlout)=10000),
37 desc=Checking first hash diff,
38 outds=work.test_results
39)