Hello all I'm running the following code:
%sysexec( copy "\\uncpath\file.xlsm"
"\\uncpath\file.xlsx" ) ;
Proc export data = want
outfile = "\\uncpath\file.xlsx";
Dbms = Xlsx replace ;
sheet='sheet 1';
run ;
%sysexec( copy "\\uncpath\file.xlsm"
"\\uncpath\file.xlsx" ) ;
The above works fine, but I do get a prompt for each %sysexec() command I run.
Is there a way to hide this cmd.exe window? It copies my .xlsx sheet to my .xlsm sheet just fine but I'm trying to automate this to run on it's own and currently I have to close out of this window each time. I haven't been very successful in finding a way to prevent this thus far. Any help would be appreciated.
Thanks
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.