BookmarkSubscribeRSS Feed
Jaheuk
Obsidian | Level 7
dear all,
to use an update/insert in SAS SQL you have to specify UNDO_POLICY=OPTIONAL or NONE
But because of this i get a WARNING in the log and on mainframe this
gives a RETURN CODE 4!
HoW can i push this RC to 0 (zero) in the SQL or with an extra data step to tell OPC the job is ok??

Regards,
Herman
1 REPLY 1
DanielSantos
Barite | Level 11
Force the system macro variable SYSCC to the value you want.

Ideally you should save its value BEFORE executing the SAS SQL then restore it after.

%let _SYSCC=&SYSCC; * save SYSCC;

...

%let SYSCC=&_SYSCC;

Be aware that this will mask any type of error occurred between the two %let.

Check the online doc: http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/tw3514-syscc-var.htm

Cheers from Portugal.

Daniel Santos @ www.cgd.pt

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1295 views
  • 0 likes
  • 2 in conversation