BookmarkSubscribeRSS Feed
harmonic
Quartz | Level 8

When running a simple data step in Sas Analytics pro with virtual machine Linux on Docker I got this kind of error

 

86 data _null_;
87 call system('pwd');
88 run;
ERROR: Shell escape is not valid in this SAS session.

 

In other post I saw that I should set -xcmd in USERMODS_OPTIONS

 

I see this kind of file in the path /opt/sas/viya/config/etc/batchserver/default/autoexec_usermods.sas but I do not know how to set it.

3 REPLIES 3
harmonic
Quartz | Level 8

In Sas Analytics pro with virtual machine I have Sas Studio and I don't find any manage environment to create a Compute Context. 

 

Alternatively I found another solution:

 

Go to the path and edit this file:

/opt/sas/viya/config/etc/spawner/default/spawner_usermods.sh

from the container in the Docker and swap the last row with this value:

USERMODS="$JREOPTIONS -allowxcmd"

 

Save and restart the machine.

 

Sajid01
Meteorite | Level 14

Hello
My understanding is that SAS Analytics pro is based on SAS 9.4, so the path you referred to will not be valid.
The appropriate approach would be to speak to SAS Admin or SAS support in your organization. They will do the needful.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2507 views
  • 0 likes
  • 3 in conversation