The SAS Output Delivery System and reporting techniques

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

Accepted Solution Solved
Reply
Contributor
Posts: 21
Accepted Solution

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

[ Edited ]

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

 

Im getting this error while running the program through windows batch file (scheduling).

 

error.pnglog

 

 


Accepted Solutions
Solution
‎06-11-2018 07:42 AM
Super User
Posts: 10,571

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

[ Edited ]
Posted in reply to kuppusamy

Are you using Lev1\SASApp\BatchServer\sasbatch.sh to run your program in batch? If you do, -noxcmd is set in there.

If you need it, have it set by the SAS admin in sasbatch_usermods.sh (same directory).

 


@kuppusamy wrote:

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

 

Im getting this error while running the program through windows batch file (scheduling).

 

error.pnglog

 

 


 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code

View solution in original post


All Replies
Super User
Posts: 10,571

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

Posted in reply to kuppusamy

Please reformat your post, at the moment it's nigh unreadable.

 

Post log text into a {i} window, so the formatting (very important for diagnostics!) is preserved.

 

"Shell escape not valid" usually means you work in an environment where NOXCMD is set (default for workspace servers at SAS installation). EIther have that changed by the SAS administrator, or see if you can work around by using SAS file functions.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Solution
‎06-11-2018 07:42 AM
Super User
Posts: 10,571

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

[ Edited ]
Posted in reply to kuppusamy

Are you using Lev1\SASApp\BatchServer\sasbatch.sh to run your program in batch? If you do, -noxcmd is set in there.

If you need it, have it set by the SAS admin in sasbatch_usermods.sh (same directory).

 


@kuppusamy wrote:

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

 

Im getting this error while running the program through windows batch file (scheduling).

 

error.pnglog

 

 


 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Contributor
Posts: 21

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

Posted in reply to KurtBremser

Now, Its working.

 

Thank You, Mr. KurtBremser

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 330 views
  • 0 likes
  • 2 in conversation