BookmarkSubscribeRSS Feed
harmonic
Obsidian | Level 7

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
Obsidian | Level 7

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.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 3 replies
  • 1195 views
  • 0 likes
  • 3 in conversation