Wednesday, January 23, 2013

SAS: Setting a macro variable to value of SYSCC, which is itself a macro variable.

Here's how to set a SAS macro variable to the value of SYSCC, which is itself a macro variable:

%if (&SYSCC ne 0) %then %do;
   %let ERR_LVL = %sysevalf(&SYSCC);
%end;

No comments:

Post a Comment