I have a file called outer.cmd. That file calls inner.cmd. I use the %sysexec command to call outer.cmd. However I recieve the error "inner.cmd is not recognized as an internal or external command" when SAS 9.3 runs the outer program. Is there a way around this?
My first guess would be to use fully qualified path names in the outer.cmd. inner.cmd is probably in a place not included in your %path%.
The outer.cmd file calls and runs the inner.cmd file correctly if I run it outside SAS.
My first guess would be to use fully qualified path names in the outer.cmd. inner.cmd is probably in a place not included in your %path%.
Thank you. This suggestion fixed my issue. Even though both files are in the same folder calling the inner file like " call inner.cmd" didn't work. Instead I needed to call it like so " call "C:\Users\user\Documents\inner.cmd" ".
You probably used a fully qualified path name for outer.cmd. But that does not imply a change directory to its location. UNIX shell scripts do often extract the path from the called commandline and change to it for that reason.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.