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=
"SAS_SASUnit.css");
 
   53       TITLE 
"&g_nls_reportPrimaryKey_001";
 
   54       TITLE2 
"&g_nls_reportPrimaryKey_002.";
 
   55       %IF %sysfunc(exist(_apk._notUnique)) %THEN %DO;
 
   56          %LET dsid=%sysfunc(open(_apk._notUnique));
 
   57          %LET cnt =%sysfunc(attrn(&dsid,nlobs));
 
   58          %LET rc  =%sysfunc(close(&dsid));
 
   59          %IF &cnt ne 0 %THEN %DO;
 
   60             PROC PRINT DATA=_apk._notUnique;
 
   66                PUT 
"&g_nls_reportPrimaryKey_003.";
 
   73             PUT 
"&g_nls_reportPrimaryKey_023.";
 
   77       TITLE2 
"&g_nls_reportPrimaryKey_021.";
 
   78       %_reportFooter(o_html=&o_html.);
 
   79       %IF %sysfunc(exist(_apk._sorted)) %THEN %DO;
 
   80          %LET dsid=%sysfunc(open(_apk._sorted));
 
   81          %LET cnt =%sysfunc(attrn(&dsid,nlobs));
 
   82          %LET rc  =%sysfunc(close(&dsid));
 
   84          %IF &cnt ne 0 %THEN %DO;
 
   85             PROC PRINT DATA=_apk._sorted;
 
   91                PUT 
"&g_nls_reportPrimaryKey_022.";
 
   98             PUT 
"&g_nls_reportPrimaryKey_023.";
 
  102    %IF (&o_html.) %then %
do;
 
  107 %MEND _render_assertPrimaryKeyRep;