Loading...
Select Version
The MAINCODE( ) function accesses the return code of the last command which resulted in an error or which was followed by a /SAVE-RETURNCODE. It returns the seven-byte error code of the return code, which is also the message code for error messages (the remaining components of the command return code are requested with the SUBCODE1( ) and SUBCODE2( ) functions).
Result type: STRING (<string 7..7>)
MAINCODE( ) |