Hi all, at the end of an EG project, I need to have one dataset deleted and one copy and renamed as the one that was just deleted (for the next run).
I have the following in a code node as the last step of the project:
options noxwait;
data _null_;
x 'del \\NCRFP4\TAF\SAS Projects Datasets\NATGapDatasets\natcumfbs1.sas7bdat'; run;
x 'copy \\NCRFP4\TAF\SAS Projects Datasets\NATGapDatasets\natcumfbs.sas7bdat \\NCRFP4\TAF\SAS Projects Datasets\NATGapDatasets\natcumfbs1.sas7bdat';
run;
these steps are never executed.
Any insight? Thanks
Why do you need system commands (which are likely disabled) for such a thing:
proc datasets lib=<insertlib> nolist; delete natcumfbs1; quit; data <insertlib>.natcumfbs1; set <insertlib>.natcumfbs; run;
I don't know your library so you need to put that in.
EG rarely supports X commands. Is X commands enabled and are you running locally where DOS is available or is EG running off a Unix Server?
Is there a specific reason you're not using the SAS functionality for this, ie PROC DATASETS can both delete and move data?
Why do you need system commands (which are likely disabled) for such a thing:
proc datasets lib=<insertlib> nolist; delete natcumfbs1; quit; data <insertlib>.natcumfbs1; set <insertlib>.natcumfbs; run;
I don't know your library so you need to put that in.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.