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" style=styles.SASUnit stylesheet=(url=
"SAS_SASUnit.css");
53 %_reportFooter(o_html=&o_html.);
55 %
if (%sysfunc (libref(_test))=0) %then %
do;
56 TITLE
"&g_nls_reportLibrary_006";
57 PROC DOCUMENT NAME=_test._library_exp;
58 REPLAY / ACTIVETITLE ACTIVEFOOTN;
67 %
if (&o_html.) %then %
do;
69 ODS HTML4 FILE=
"&o_path/_&i_scnid._&i_casid._&i_tstid._library_act.html" style=styles.SASUnit stylesheet=(url=
"SAS_SASUnit.css");
71 %
if (%sysfunc (libref(_test))=0) %then %
do;
72 PROC DOCUMENT NAME=_test._library_act;
73 REPLAY / ACTIVETITLE ACTIVEFOOTN;
82 %
if (&o_html.) %then %
do;
84 ODS HTML4 FILE=
"&o_path/_&i_scnid._&i_casid._&i_tstid._library_rep.html" style=styles.SASUnit stylesheet=(url=
"SAS_SASUnit.css");
87 %
if (%sysfunc (exist (_test._library_rep, DATA))) %then %
do;
88 %local l_LibraryCheck l_CompareCheck l_id l_ExcludeList;
90 %*** format results
for report ***;
91 data WORK._library_rep;
92 Length resultColumn $400;
93 set _test._library_rep;
94 %_render_iconColumn (i_sourceColumn=CompareFailed
96 ,o_targetColumn=resultColumn
101 select i_LibraryCheck, i_CompareCheck, i_id, i_ExcludeList
102 into :l_LibraryCheck, :l_CompareCheck, :l_id, :l_ExcludeList
103 from _test._library_rep (obs=1);
108 Title2 h=3
"LibraryCheck=%trim(&l_LibraryCheck.) - CompareCheck=%trim(&l_CompareCheck.)";
109 %
if (&l_id. ne _NONE_) %then %
do;
110 Title3 h=3
"ID-Columns: %trim (&l_id.)";
112 %
if (&l_ExcludeList. ne _NONE_) %then %
do;
113 Title4 h=3
"&g_nls_reportLibrary_002: %trim (&l_ExcludeList.)";
115 proc report data=WORK._library_rep nowd missing
116 style (column)={vjust=center};
118 (
"&g_nls_reportLibrary_003" CmpLibname CmpObs CmpNVar)
119 (
"&g_nls_reportLibrary_004" BaseLibname BaseObs BaseNVar)
122 define memname /
id style={font_weight=bold foreground=black};
123 define resultColumn /
"&g_nls_reportLibrary_005" style(column)={background=white};
132 %
if (&o_html.) %then %
do;
139 %MEND _render_assertLibraryRep;