BookmarkSubscribeRSS Feed

[SAS 활용 FAQ] SAS batch 작업에서 발생하는 경고메시지를 무시하는 방법을 알려주세요.

Started ‎07-28-2021 by
Modified ‎07-28-2021 by
Views 313

SAS Config/Lev1/BatchServer/sasbatch.sh파일을 아래와 같이 수정해 보십시요.

*comment 처리 (#) 부분 제거

 

[수정전]

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

# Add this code to capture exit=1 (SAS warning) and make it exit=0

# Comment out exec line above and uncomment the code below to allow the return code to be captured

#"$SAS_COMMAND" -noxcmd -lrecl 32767 "$@" "${USERMODS_OPTIONS[@]}"

#rc=$?

#if [ $rc -eq 1 ]; then # rc=0

#fi

#exit $rc

 

[수정후]

#exec "$SAS_COMMAND" -noxcmd -lrecl 32767 "$@" "${USERMODS_OPTIONS[@]}"
# Add this code to capture exit=1 (SAS warning) and make it exit=0
# Comment out exec line above and uncomment the code below to allow the return code to be captured

"$SAS_COMMAND" -noxcmd -lrecl 32767 "$@" "${USERMODS_OPTIONS[@]}"
rc=$?

if [ $rc -eq 1 ]; then

rc=0

fi

exit $rc

Version history
Last update:
‎07-28-2021 09:41 PM
Updated by:
Contributors

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

Article Labels
Article Tags