Hello team,
I have this:
%If &syscc > 999 %then % do
What does &syscc > 999 do/ mean?
I know &syscc is a read/ write automatic macro variable that enable us to reset the job condition code and to recover from conditions that prevent subsequent steps from running.
Regards,
blue & blue
See :
WUSS 2018 , Paper 077-2018
Stop the Madness!
Detecting Runtime Errors and Exiting from Nested Macros Gracefully
Ted D. Williams, PharmD, BCPS, Magellan Method
https://www.lexjansen.com/wuss/2018/77_Final_Paper_PDF.pdf
To me, any SYSCC above 4 rings an alarm bell.
No idea when it goes above 999 (if set by the SAS software).
Thanks,
Koen
That someone wants to perform some action only when the value of &syscc is greater than 999. Finding all of the possible values for such codes can be a chore. Plus your code could set specified values for the variable for some specific meaning to the programmer.
Searching the online documentation for SYSCC will bring up a link about SAS Macro Error Messages that contains.
Cause
|
Solution
|
---|---|
An attempt was made to use a value of 9999999999 or greater for the SYSCC automatic macro variable.
|
The value for the SYSCC automatic macro variable must be less than 9999999999.
|
To understand what YOUR program is doing we need to see YOUR program. What statements is it running that might modify the macro variable SYSCC. What it is doing when the values is greater than 999. Whether the code really has a space between the % and the DO .
To read more about SYSCC look at the SAS documentation.
Search: @sas.com syscc automatic macro variable
Read: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/p11nt7mv7k9hl4n1x9zwkralgq1b.htm
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.