26 %macro _render_assertPrimaryKeyRep (i_assertype =
35 %local l_path dsid cnt rc;
39 %_getTestSubfolder (i_assertType=assertPrimaryKey
40 ,i_root =&g_target./tst
47 LIBNAME _apk
"&l_path";
49 %IF (&o_html.) %then %
do;
50 ODS HTML4 FILE=
"&o_path/_&i_scnid._&i_casid._&i_tstid._primarykey_rep.html" stylesheet=(url=
"css/SAS_SASUnit.css")
51 encoding=
"&g_rep_encoding.";
54 TITLE
"&g_nls_reportPrimaryKey_001";
55 TITLE2
"&g_nls_reportPrimaryKey_002.";
56 %IF %sysfunc(exist(_apk._notUnique)) %THEN %DO;
57 %LET dsid=%sysfunc(open(_apk._notUnique));
58 %LET cnt =%sysfunc(attrn(&dsid,nlobs));
59 %LET rc =%sysfunc(close(&dsid));
60 %IF &cnt ne 0 %THEN %DO;
61 PROC PRINT DATA=_apk._notUnique;
67 PUT
"&g_nls_reportPrimaryKey_003.";
74 PUT
"&g_nls_reportPrimaryKey_023.";
78 TITLE2
"&g_nls_reportPrimaryKey_021.";
79 %_reportFooter(o_html=&o_html.);
80 %IF %sysfunc(exist(_apk._sorted)) %THEN %DO;
81 %LET dsid=%sysfunc(open(_apk._sorted));
82 %LET cnt =%sysfunc(attrn(&dsid,nlobs));
83 %LET rc =%sysfunc(close(&dsid));
85 %IF &cnt ne 0 %THEN %DO;
86 PROC PRINT DATA=_apk._sorted;
92 PUT
"&g_nls_reportPrimaryKey_022.";
99 PUT
"&g_nls_reportPrimaryKey_023.";
103 %IF (&o_html.) %then %
do;
108 %MEND _render_assertPrimaryKeyRep;