Automatic macro variable SYSCC returns a 4 in SAS® Enterprise Guide


SYSCC is a read/write automatic macro variable that enables you to reset the job condition code and to recover from conditions that prevent subsequent steps from running. The values for SYSCC are:

By default, SAS Enterprise Guide uses options validvarname=any;. This option generates a SAS warning. Because of this, although the option and the warning are not displayed in the log, you will see the return code 4.

To use the SYSCC variable, select Tools ► Options ► SAS Programs and select Insert custom code before submitted code. Then, add the following lines:

 %let syscc=0; 
options validvarname=v7;