24 %macro _copyDir (i_from
28 %LOCAL l_i_from l_i_to logfile;
31 %local xwait xsync xmin;
32 %let xwait=%sysfunc(getoption(xwait));
33 %let xsync=%sysfunc(getoption(xsync));
34 %let xmin =%sysfunc(getoption(xmin));
35 options noxwait xsync xmin;
37 %let i_from = %qsysfunc(translate(&i_from,\,/));
38 %let i_to = %qsysfunc(translate(&i_to ,\,/));
39 %let logfile=%sysfunc(pathname(work))\___log.txt;
46 %sysexec (xcopy
"&i_from" "&i_to" /E /I /Y >
"&logfile" 2>&1);
48 %
if &g_verbose. %then %
do;
49 %put ======== OS Command Start ========;
51 %
if &sysrc. = 0 %then %put &g_note.(SASUNIT): Sysrc : 0 -> SYSEXEC SUCCESSFUL;
52 %
else %put &g_error.(SASUNIT): Sysrc : &sysrc -> An Error occured;
55 %put &g_note.(SASUNIT): SYSEXEC COMMAND IS: xcopy
"&i_from" "&i_to" /E /I /Y >
"&logfile";
59 infile
"&logfile" truncover lrecl=512;
63 %put ======== OS Command End ========;
66 options &xwait &xsync &xmin;