Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

SAVE-RETURNCODE Save current command return code

&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


0CMD0001No error

1CMD0202Syntax error

3CMD2203Incorrect syntax file

32CMD0221System error (internal error)

130SDP0099No further address space available