Using the %lasterrormsg Variable

Top  Previous  Next

 

The %lasterrormsg variable is initialized to a text description of the last error of the most recently completed script command. This message is the same as what appears in the script log.

 

The following console window excerpt demonstrates one use of this variable.

 

Line 5:  RCVFILE "does_not_exist"

*550 Requested action not taken. File unavailable

*File receive operation failed. [1059]

Line 6:  DISPLAY %lasterrormsg

%lasterrormsg = *File receive operation failed