Loading...
Select Version
&pagelevel(4)&pagelevel
Domain: PROCEDURE
Command description
END-IF terminates blocks with conditional command sequences, i.e.:
IF block
IF-BLOCK-ERROR block
IF-CMD-ERROR block
Procedure execution then resumes with the command following END-IF. (Full details are contained in section “Defining conditional branches”.)
Format
END-IF |
BLOCK = *LAST / <structured-name 1..255> |
Operands
BLOCK =
Designates the IF, IF-BLOCK-ERROR or IF-CMD-ERROR block to be terminated.
BLOCK = *LAST
Reference to the IF, IF-BLOCK-ERROR or IF-CMD-ERROR block last opened.
BLOCK = <structured-name 1..255>
Reference to the tag of the IF, IF-BLOCK-ERROR or IF-CMD-ERROR block last opened; specifying another block tag produces an error message.
Command return codes
(SC2) | SC1 | Maincode | Meaning |
0 | CMD0001 | No error | |
1 | CMD0202 | Syntax error | |
1 | SDP0118 | Command in false context | |
1 | SDP0223 | Incorrect environment | |
3 | CMD2203 | Incorrect syntax file | |
32 | CMD0221 | System error (internal error) | |
130 | SDP0099 | No further address space available |
Example
See the IF command, "IF Initiate IF block ".