Previous Page | Next Page

Functions and CALL Routines

SYSRC Function



Returns a system error number.
Category: SAS File I/O
Category: External Files

Syntax
Details
Examples
See Also

Syntax

SYSRC()


Details

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.


Examples

This example determines the error message if FILEREF does not exist:

%if %sysfunc(fileref(myfile)) ne 0 %then
   %put %sysfunc(sysrc()) - %sysfunc(sysmsg());


See Also

Functions:

FILEREF Function

SYSMSG Function

Previous Page | Next Page | Top of Page