BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
KJ_SAS
Calcite | Level 5

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?   

1 ACCEPTED SOLUTION
5 REPLIES 5
LinusH
Tourmaline | Level 20
Does it work if call outer outside SAS (from the same directory/user/etc)?
Data never sleeps
KJ_SAS
Calcite | Level 5

The outer.cmd file calls and runs the inner.cmd file correctly if I run it outside SAS.

KJ_SAS
Calcite | Level 5

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"  ". 

Kurt_Bremser
Super User

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.

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 1109 views
  • 0 likes
  • 3 in conversation