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
.
ERROR: Shell escape is not valid in this SAS session.
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
IIRC, the scheduler uses one of the SAS Data Step Batch Servers, so you need to change the configuration of that.
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[@]}"
The 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
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.