27 %macro _getTestSubfolder (i_assertType=
 
   28                          ,i_root      =%sysfunc(pathname(testout))
 
   35    %local l_scnid_string l_subfoldername;
 
   37    %
if %nrbquote (&i_assertType.) = %str() %then %
do;
 
   38       %put &g_error.(SASUNIT): Please specify a value 
for i_assertType.;
 
   41    %
if %nrbquote (&i_root.) = %str() %then %
do;
 
   42       %put &g_error.(SASUNIT): Please specify a value 
for i_root.;
 
   45    %
if not %_existdir (&i_root.) %then %
do;
 
   46       %put &g_error.(SASUNIT): Please specify a valid directory 
for i_root.;
 
   49    %
if %nrbquote (&i_scnid.) = %str() %then %
do;
 
   50       %put &g_error.(SASUNIT): Please specify a value 
for i_scnid.;
 
   53    %
if %nrbquote (&i_casid.) = %str() %then %
do;
 
   54       %put &g_error.(SASUNIT): Please specify a value 
for i_casid.;
 
   57    %
if %nrbquote (&i_tstid.) = %str() %then %
do;
 
   58       %put &g_error.(SASUNIT): Please specify a value 
for i_tstid.;
 
   61    %
if %nrbquote (&r_path.) = %str() %then %
do;
 
   62       %put &g_error.(SASUNIT): Please specify a value 
for r_path.;
 
   65    %
if not %symexist(&r_path.) %then %
do;
 
   66       %put &g_error.(SASUNIT): Macrovariable 
for return of subfolder path was not declared by a %nrstr(%%)local-statement.;
 
   70    %let l_scnid_string =_%sysfunc(putn (&i_scnid,z3.))_%sysfunc(putn (&i_casid.,z3.))_%sysfunc (putn (&i_tstid.,z3.));
 
   71    %let l_subfoldername=&l_scnid_string._%lowcase(&i_assertType.);
 
   72    %let &r_path.=%_abspath (i_root=&i_root., i_path=&l_subfoldername.);