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.
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[@]}"
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.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.
Find more tutorials on the SAS Users YouTube channel.