26 %macro _render_assertForeignKeyRep (i_assertype =
 
   35   %local l_path dsid cnt rc;
 
   39   %_getTestSubfolder (i_assertType=assertForeignKey
 
   40                      ,i_root      =&g_target./tst
 
   47    LIBNAME _afkLib 
"&l_path";
 
   49    %IF (&o_html.) %then %
do;
 
   50       ODS HTML4 FILE=
"&o_path/_&i_scnid._&i_casid._&i_tstid._foreignkey_rep.html" stylesheet=(url=
"SAS_SASUnit.css");
 
   53       TITLE 
"&g_nls_reportForeignKey_011";
 
   54       TITLE2 
"&g_nls_reportForeignKey_013.";
 
   55       %IF %sysfunc(exist(_afkLib.keyNotFndLookUp)) %THEN %DO;
 
   56          %LET dsid=%sysfunc(open(_afkLib.keyNotFndLookUp));
 
   57          %LET cnt =%sysfunc(attrn(&dsid,nlobs));
 
   58          %LET rc  =%sysfunc(close(&dsid));
 
   59          %IF &cnt ne 0 %THEN %DO;
 
   60             PROC PRINT DATA=_afkLib.keyNotFndLookUp;
 
   66                PUT 
"&g_nls_reportForeignKey_012.";
 
   73             PUT 
"&g_nls_reportForeignKey_015.";
 
   77       TITLE2 
"&g_nls_reportForeignKey_014.";
 
   78       %_reportFooter(o_html=&o_html.);
 
   79       %IF %sysfunc(exist(_afkLib.keyNotFndMstr)) %THEN %DO;
 
   80          %LET dsid=%sysfunc(open(_afkLib.keyNotFndMstr));
 
   81          %LET cnt =%sysfunc(attrn(&dsid,nlobs));
 
   82          %LET rc  =%sysfunc(close(&dsid));
 
   84          %IF &cnt ne 0 %THEN %DO;
 
   85             PROC PRINT DATA=_afkLib.keyNotFndMstr;
 
   91                PUT 
"&g_nls_reportForeignKey_015.";
 
   98             PUT 
"&g_nls_reportForeignKey_012.";
 
  102    %IF (&o_html.) %then %
do;
 
  107 %MEND _render_assertForeignKeyRep;