Using the %lasterror Variable |
Top Previous Next |
The %lasterror variable is initialized to the last error or completion code of the most recently completed script command.
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 %lasterror %lasterror = 1059
|