| Functions and CALL Routines |
| 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 |
|
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.