SYSRC Function


SYSRC Function

Returns a system error number

Category: SAS File I/O

Category: External Files

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 Function' on page 532

  • 'SYSMSG Function' on page 847




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net