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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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