Previous Page | Next Page

SAS Component Language Dictionary

SYSMSG



Returns the text of SCL error messages or warning messages
Category: Message

Syntax
Details
Example
See Also

Syntax

cval=SYSMSG();

cval

contains the text of the SCL error message.

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

SYSRC

_MSG_

Previous Page | Next Page | Top of Page