24 %macro _copyDir (i_from
28 %LOCAL l_i_from l_i_to logfile;
30 %let l_i_from = %qsysfunc(tranwrd(&i_from, %str( ), %str(\ )));
31 %let l_i_to = %qsysfunc(tranwrd(&i_to, %str( ), %str(\ )));
32 %let logfile = %sysfunc(pathname(work))/___log.txt;
34 %SYSEXEC(cp -R &l_i_from. &l_i_to. >
"&logfile" 2>&1);
35 %
if &g_verbose. %then %
do;
36 %put ======== OS Command Start ========;
38 %
if &sysrc. = 0 %then %put &g_note.(SASUNIT): Sysrc : 0 -> SYSEXEC SUCCESSFUL;
39 %
else %put &g_error.(SASUNIT): Sysrc : &sysrc -> An Error occured;
42 %put &g_note.(SASUNIT): SYSEXEC COMMAND IS: cp -R &l_i_from. &l_i_to. >
"&logfile" 2>&1;
46 infile
"&logfile" truncover lrecl=512;
50 %put ======== OS Command End ========;