SASUnit Examples  Version 1.3.0
_render_assertcolumnsrep.sas
Go to the documentation of this file.
1 
26 %MACRO _render_assertColumnsRep (i_assertype=
27  ,i_repdata =
28  ,i_scnid =
29  ,i_casid =
30  ,i_tstid =
31  ,o_html = 0
32  ,o_path =
33  );
34 
35  %local l_path;
36 
37  title;footnote;
38 
39  %_getTestSubfolder (i_assertType=assertColumns
40  ,i_root =&g_target./tst
41  ,i_scnid =&i_scnid.
42  ,i_casid =&i_casid.
43  ,i_tstid =&i_tstid.
44  ,r_path =l_path
45  );
46 
47  LIBNAME _acLib "&l_path";
48 
49  %if (&o_html.) %then %do;
50  ODS HTML4 FILE="&o_path/_&i_scnid._&i_casid._&i_tstid._cmp_exp.html" style=styles.SASUnit stylesheet=(url="SAS_SASUnit.css");
51  %end;
52 
53  %_reportFooter(o_html=&o_html.);
54 
55  TITLE "&g_nls_reportCmp_003";
56  %IF %sysfunc(exist(_acLib._columns_exp)) %THEN %DO;
57  PROC PRINT DATA=_acLib._columns_exp;
58  RUN;
59  %END;
60  %ELSE %DO;
61  DATA _null_;
62  FILE PRINT;
63  PUT "&g_nls_reportCmp_004";
64  RUN;
65  %END;
66 
67  %if (&o_html.) %then %do;
68  %_closeHtmlPage;
69  ODS HTML4 FILE="&o_path/_&i_scnid._&i_casid._&i_tstid._cmp_act.html" style=styles.SASUnit stylesheet=(url="SAS_SASUnit.css");
70  %end;
71  TITLE "&g_nls_reportCmp_001";
72  %IF %sysfunc(exist(_acLib._columns_act)) %THEN %DO;
73  PROC PRINT DATA=_acLib._columns_act;
74  RUN;
75  %END;
76  %ELSE %DO;
77  DATA _null_;
78  FILE PRINT;
79  PUT "&g_nls_reportCmp_002";
80  RUN;
81  %END;
82 
83 
84  %if (&o_html.) %then %do;
85  %_closeHtmlPage;
86  ODS HTML4 FILE="&o_path/_&i_scnid._&i_casid._&i_tstid._cmp_rep.html" style=styles.SASUnit stylesheet=(url="SAS_SASUnit.css");
87  %end;
88  TITLE "&g_nls_reportCmp_005";
89  PROC DOCUMENT NAME=_acLib._columns_rep;
90  REPLAY / ACTIVETITLE ACTIVEFOOTN;
91  QUIT;
92  %if (&o_html.) %then %do;
93  %_closeHtmlPage;
94  %end;
95 
96  LIBNAME _acLib;
97 %MEND _render_assertColumnsRep;