Chapter Contents

Previous

Next
SYSRC

SYSRC



Returns a system error number

Category: SAS File I/O
Category: External Files


Syntax
Details
Example
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.


Example

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
SYSMSG


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.