SASUnit Examples  Version 1.5.0
_createtestsubfolder.sas
Go to the documentation of this file.
1 
27 %macro _createTestSubfolder (i_assertType=
28  ,i_root =%sysfunc(pathname(testout))
29  ,i_scnid =
30  ,i_casid =
31  ,i_tstid =
32  ,r_path =
33  );
34 
35  %local l_path_cts;
36  %let l_path_cts=_ERROR_;
37 
38  %if %nrbquote (&r_path.) = %str() %then %do;
39  %put &g_error.(SASUNIT): Please specify a value for r_path.;
40  %RETURN;
41  %end;
42  %if not %symexist(&r_path.) %then %do;
43  %put &g_error.(SASUNIT): Macrovariable for return of subfolder path was not declared by a %nrstr(%%)local-statement.;
44  %RETURN;
45  %end;
46  %let &r_path.=_ERROR_;
47 
48  %_getTestSubfolder (i_assertType=&i_assertType.
49  ,i_root =&i_root.
50  ,i_scnid =&i_scnid.
51  ,i_casid =&i_casid.
52  ,i_tstid =&i_tstid.
53  ,r_path =l_path_cts
54  );
55 
56  %if (%nrbquote(&l_path_cts.) = _ERROR_) %then %do;
57  %RETURN;
58  %end;
59 
60  %_mkdir (&l_path_cts.);
61 
62  %let &r_path.=&l_path_cts.;
63 %mend;