Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

SUBCODE1( ) - Interrogate subcode1

&pagelevel(5)&pagelevel

Domain:     

Return codes

The SUBCODE1 function supplies the value of subcode1 of the current return code.
A subcode1 not equal to zero means that an error has occurred, in which case SDF-P branches to the next IF-BLOCK-ERROR or IF-CMD-ERROR command (see corresponding descriptions). If subcode1 is equal to zero, SDF-P does not report an error. In this case, a return code cannot be interpreted unless it has been saved with the SAVE-RETURNCODE command.

SUBCODE1( ) is not available outside of procedures and dialog blocks.

Format

SUBCODE1( )                                                                                                                                               

SC1( )


Result type

INTEGER (<integer 0..255>)

Input parameters

None

Result

Designation of the error class in the form of an integer value <integer 0..255>

0
No error has occurred in the current procedure or the return code was saved with /SAVE-RETURNCODE after an error-free command.