Loading...
Select Version
&pagelevel(4)&pagelevel
Domain: PROCEDURE
Command description
SAVE-RETURNCODE saves the current command return code so that it can be evaluated with SDF-P functions. The predefined functions SUBCODE1( ), SUBCODE2( ) and MAINCODE( ) are available for evaluating the return code (see chapter “Predefinedfunctions” (Predefined functions )).
SAVE-RETURNCODE is necessary if an error did not occur but the return code is to be evaluated.
The return code which is saved is then available until the next time an error occurs (in any command), or until a SAVE-RETURNCODE command is executed.
Note
If the IF-CMD-ERROR command is entered, SDF-P implicitly executes a SAVE-RETURNCODE command.
Format
SAVE-RETURNCODE |
Command return codes
(SC2) | SC1 | Maincode | Meaning |
0 | CMD0001 | No error | |
1 | CMD0202 | Syntax error | |
3 | CMD2203 | Incorrect syntax file | |
32 | CMD0221 | System error (internal error) | |
130 | SDP0099 | No further address space available |