BookmarkSubscribeRSS Feed
GN0001
Barite | Level 11

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

Blue Blue
4 REPLIES 4
sbxkoenk
SAS Super FREQ

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

ballardw
Super User

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.

 

Error: The value supplied for assignment to the numeric automatic macro variable SYSCC was out of range or could not be converted to a numeric value.
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.
GN0001
Barite | Level 11
Hello,
Can you please explain more?
Regards,
Blueblue
Blue Blue
Tom
Super User Tom
Super User

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

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

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
  • 4 replies
  • 1296 views
  • 3 likes
  • 4 in conversation