Returns a system error number
Category: SAS File I/O
Category: External Files
SYSRC ()
SYSRC returns the error number for the last system error encountered by a call to one of the data set functions or external file functions.
This example determines the error message if FILEREF does not exist:
%if %sysfunc(fileref(myfile)) ne 0 %then %put %sysfunc(sysrc()) - %sysfunc(sysmsg());
Functions:
'FILEREF Function' on page 532
'SYSMSG Function' on page 847