SASUnit Examples  Version 1.3.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="SAS_SASUnit.css");
51  %END;
52 
53  TITLE "&g_nls_reportRowExpression_001.";
54  TITLE2 "&g_nls_reportRowExpression_002.";
55  %IF (%_nobs(_areLib.ViolatingObservations) > 0) %THEN %DO;
56  PROC PRINT DATA=_areLib.ViolatingObservations;
57  RUN;
58  %END;
59  %ELSE %DO;
60  DATA _null_;
61  FILE PRINT;
62  PUT "&g_nls_reportRowExpression_003.";
63  RUN;
64  %END;
65 
66  %_reportFooter(o_html=&o_html.);
67 
68  %IF (&o_html.) %then %do;
69  %_closeHtmlPage;
70  %END;
71 
72  TITLE; FOOTNOTE;
73 %MEND _render_assertrowexpressionrep;