BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MG18
Lapis Lazuli | Level 10

HI all ,

 

I am trying to run shell in SAS DI job but it is giving below error :-

ERROR: Shell escape is not valid in this SAS session.

 

I have tried this workaround mentioned in http://support.sas.com/kb/41/058.html and  took restart also.

 

Please guide me how to run shell command in SAS DI job .

 

Many thank in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
nicocba
Fluorite | Level 6
You have to enable sasbatch to run xcmd

Check the sasbatch.sh file you should have a line like the following:

"$SAS_COMMAND" -noxcmd -lrecl 32767 "$@" "${USERMODS_OPTIONS[@]}"

Change the "-noxcmd" option for "-xcmd" and it should work

Sorry about my english

View solution in original post

3 REPLIES 3
Kurt_Bremser
Super User

Doesn't DI Studio use the Data Step Batch Server for running its jobs? So you might have to look in another place to change the configuration (the sasbatch.sh file)

LinusH
Tourmaline | Level 20

Well, yes, the deployed jobs from DI Studio is usually executed from the Data Step Batch Server.

But the interactive DI Studio sessions uses the standard Workspace Server.

If you think that you followed the steps in note, and still have the problem, contact tech support that should be able to walk you through the steps in detail.

Data never sleeps
nicocba
Fluorite | Level 6
You have to enable sasbatch to run xcmd

Check the sasbatch.sh file you should have a line like the following:

"$SAS_COMMAND" -noxcmd -lrecl 32767 "$@" "${USERMODS_OPTIONS[@]}"

Change the "-noxcmd" option for "-xcmd" and it should work

Sorry about my english

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2042 views
  • 2 likes
  • 4 in conversation