Hello -
I saw a few topics on this question, but I wasn't able to get anything to work for what I need.
I'm using SAS Enterprise Guide, and I have a .bat file that runs a few things within SecureFX (transferring files between servers with the Synchronize function). Right now, I run a process in SAS, and then paste the .bat path in the start menu and run it afterwards.
Is there a way to run my program, and within SAS, call this .bat file, similar to just running it with the command window? I tried a few things with the 'x' statement and sysexec, but nothing I've tried has worked so far.
Let me know if I can provide any additional detail, and thanks for any help you can provide!
By default the ability to run operating system commands, including running BAT files is switched off. To confirm this run PROC OPTIONS and look for the XCMD option. If it is set to NOXCMD then it is switched off. You will need to get your SAS administrator to change this setting. A SAS user cannot change it.
By default the ability to run operating system commands, including running BAT files is switched off. To confirm this run PROC OPTIONS and look for the XCMD option. If it is set to NOXCMD then it is switched off. You will need to get your SAS administrator to change this setting. A SAS user cannot change it.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.