26 %macro _render_assertLibraryRep (i_assertype=
39 %_getTestSubfolder (i_assertType=assertLibrary
40 ,i_root =&g_target./tst
47 libname _test
"&l_path";
49 %
if (&o_html.) %then %
do;
50 ODS HTML4 FILE=
"&o_path/_&i_scnid._&i_casid._&i_tstid._library_exp.html"
52 stylesheet=(url=
"css/SAS_SASUnit.css")
53 encoding=
"&g_rep_encoding.";
56 %_reportFooter(o_html=&o_html.);
58 %
if (%sysfunc (libref(_test))=0) %then %
do;
59 TITLE
"&g_nls_reportLibrary_006";
60 PROC DOCUMENT NAME=_test._library_exp;
61 REPLAY / ACTIVETITLE ACTIVEFOOTN;
70 %
if (&o_html.) %then %
do;
72 ODS HTML4 FILE=
"&o_path/_&i_scnid._&i_casid._&i_tstid._library_act.html"
74 stylesheet=(url=
"css/SAS_SASUnit.css")
75 encoding=
"&g_rep_encoding.";
77 %
if (%sysfunc (libref(_test))=0) %then %
do;
78 PROC DOCUMENT NAME=_test._library_act;
79 REPLAY / ACTIVETITLE ACTIVEFOOTN;
88 %
if (&o_html.) %then %
do;
90 ODS HTML4 FILE=
"&o_path/_&i_scnid._&i_casid._&i_tstid._library_rep.html"
92 stylesheet=(url=
"css/SAS_SASUnit.css")
93 encoding=
"&g_rep_encoding.";
96 %
if (%sysfunc (exist (_test._library_rep, DATA))) %then %
do;
97 %local l_LibraryCheck l_CompareCheck l_id l_ExcludeList;
99 %*** format results
for report ***;
100 data WORK._library_rep;
101 Length resultColumn $400;
102 set _test._library_rep;
103 %_render_iconColumn (i_sourceColumn=CompareFailed
105 ,o_targetColumn=resultColumn
110 select i_LibraryCheck, i_CompareCheck, i_id, i_ExcludeList
111 into :l_LibraryCheck, :l_CompareCheck, :l_id, :l_ExcludeList
112 from _test._library_rep (obs=1);
117 Title2 h=3
"LibraryCheck=%trim(&l_LibraryCheck.) - CompareCheck=%trim(&l_CompareCheck.)";
118 %
if (&l_id. ne _NONE_) %then %
do;
119 Title3 h=3
"ID-Columns: %trim (&l_id.)";
121 %
if (&l_ExcludeList. ne _NONE_) %then %
do;
122 Title4 h=3
"&g_nls_reportLibrary_002: %trim (&l_ExcludeList.)";
124 proc report data=WORK._library_rep nowd missing
125 style (column)={vjust=center};
127 (
"&g_nls_reportLibrary_003" CmpLibname CmpObs CmpNVar)
128 (
"&g_nls_reportLibrary_004" BaseLibname BaseObs BaseNVar)
131 define memname /
id style={font_weight=bold foreground=black};
132 define resultColumn /
"&g_nls_reportLibrary_005" style(column)={background=white};
141 %
if (&o_html.) %then %
do;
148 %MEND _render_assertLibraryRep;