Chapter Contents |
Previous |
Next |
SYSMSG |
Category: | Message |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
cval=SYSMSG(); |
Type: Character
Details |
SYSMSG returns the text of error messages or warning messages that are produced when SCL encounters an error condition. If no error message is available, the returned value is blank. The internally stored error message is reset to blank after a call to SYSMSG. Therefore, if you subsequently call SYSMSG before another error condition occurs, it returns a blank value.
Example |
Display the system error message that is generated if FETCH cannot copy the next row into the Table Data Vector for the SAS table identified by the value stored in DSID. The return code is 0 only when a next record is successfully fetched.
rc=fetch(dsid); if rc ne 0 then _msg_=sysmsg();
See Also |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.