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

When I schedule sas prog via sas amangement console as sassrv user . its throwing below error. I alredy made the below changes in smc Allow XCMD

.

  1. Expand Server Manager ► SASApp ► SASApp - Logical Workspace Server.
  2. Right-click on SASApp - Workspace Server and select Properties.
  3. Click the Options tab, and then click the Advanced Options button.
  4. Click the Launch Properties tab, and select Allow XCMD. Click OK until you have closed all open dialog boxes.
  5. Exit SAS Management Console.
  6. From the Microsoft Windows desktop, click Start and then Services.
  7. Select Stop the Metadata Server and wait a few moments.
  8. Restart the servers as follows:
    • Start the Metadata Server
    • Start the Object Spawner
    • Start the SAS Remote Services
    • Start the SASTS - Table Server

 

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Instead of editing the sasbatch.sh file, you should add the -xcmd in the USERMODS_OPTIONS environment variable in sasbatch_usermods.sh.

sasbatch.sh may be overwritten by updates or hotfixes, the *_usermods* files will not be changed.

View solution in original post

3 REPLIES 3
sewa_bal_gmail_com
Quartz | Level 8

I have update the batchsas.sh file..... now is working fine.

/opt/sas/config/Lev1/SASApp/BatchServer

 

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

Kurt_Bremser
Super User

Instead of editing the sasbatch.sh file, you should add the -xcmd in the USERMODS_OPTIONS environment variable in sasbatch_usermods.sh.

sasbatch.sh may be overwritten by updates or hotfixes, the *_usermods* files will not be changed.

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 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 19021 views
  • 5 likes
  • 2 in conversation