SYSMSG returns the text
of error messages or warning messages that are produced when a data
set or external file access function 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, so subsequent calls to SYSMSG before another error condition
occurs return blank values.