Loading...
Searching...
No Matches
viewdata.test.2.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief testing public/viewdata service for serving formats
4 @details Since v4 of DC we can support formats in VIEW and EDIT mode.
5
6 <h4> SAS Macros </h4>
7 @li mp_assert.sas
8 @li mp_testservice.sas
9
10**/
11
12%let _program=&appLoc/services/public/viewdata;
13
14data work.sascontroltable;
15 libds='DCTEST.DCFMTS-FC';
16 FILTER_RK=0;
17run;
18
19%mp_testservice(&_program,
20 viyacontext=&defaultcontext,
21 inputdatasets=work.SASControlTable ,
22 outlib=web2,
23 mdebug=1
24)
25%let nobs=0;
26data _null_;
27 set web2.viewdata nobs=nobs;
28 putlog (_all_)(=);
29 if _n_=1 then call symputx('nobs',nobs);
30 else if _n_>10 then stop;
31run;
32
33%mp_assert(
34 iftrue=(&nobs>2),
35 desc=Checking the format table has records returned,
36 outds=work.test_results
37)