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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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