SASUnit Examples  Version 1.5.0
_render_assertrowexpressionrep.sas
Go to the documentation of this file.
1 
26 %macro _render_assertRowExpressionRep (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 dsid cnt rc;
36 
37  TITLE;FOOTNOTE;
38 
39  %_getTestSubfolder (i_assertType=assertRowExpression
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 _areLib "&l_path";
48 
49  %IF (&o_html.) %then %do;
50  ODS HTML4 FILE="&o_path/_&i_scnid._&i_casid._&i_tstid._are_rep.html" stylesheet=(url="css/SAS_SASUnit.css")
51  encoding="&g_rep_encoding.";
52  %END;
53 
54  TITLE "&g_nls_reportRowExpression_001.";
55  TITLE2 "&g_nls_reportRowExpression_002.";
56  %IF (%_nobs(_areLib.ViolatingObservations) > 0) %THEN %DO;
57  PROC PRINT DATA=_areLib.ViolatingObservations;
58  RUN;
59  %END;
60  %ELSE %DO;
61  DATA _null_;
62  FILE PRINT;
63  PUT "&g_nls_reportRowExpression_003.";
64  RUN;
65  %END;
66 
67  %_reportFooter(o_html=&o_html.);
68 
69  %IF (&o_html.) %then %do;
70  %_closeHtmlPage;
71  %END;
72 
73  TITLE; FOOTNOTE;
74 %MEND _render_assertrowexpressionrep;