Mark end of IF command block
Component: | SDF-P-BASYS |
Functional area: | Procedures |
Domain: | PROCEDURE |
Privileges: | STD-PROCESSING |
Function
END-IF is an SDF-P control flow command and serves to terminate a command block initiated by means of an IF, IF-BLOCK-ERROR or IF-CMD-ERROR command. Procedure execution then continues with the command that follows END-IF.
Restrictions
Users with SECURITY-ADMINISTRATION, SAT-FILE-EVALUATION or SAT-FILE-MANAGEMENT privilege can use the command in procedures only.
Format
END-IF |
BLOCK = *LAST / <structured-name 1..255> |
Operands
BLOCK = *LAST / <structured-name 1..255>
This terminates the command block initiated by means of an IF, IF-BLOCK-ERROR or IF-CMD-ERROR command.
The default value is *LAST, i.e. the last command block to have been initiated is now terminated.
When a block name is specified, SDF-P checks whether this name was assigned to the last command block to have been initiated. If the specified name and the label do not tally, SDF-P rejects the END-IF command with an error message. Specifying a block name is therefore useful for consistency checking and for documentation.
Return codes
(SC2) | SC1 | Maincode | Meaning |
---|---|---|---|
0 | CMD0001 | No error | |
1 | CMD0202 | Syntax error | |
1 | SDP0118 | Command in incorrect context | |
1 | SDP0223 | Incorrect environment | |
3 | CMD2203 | Incorrect syntax file | |
32 | CMD0221 | System error (internal error) | |
64 | SDP0091 | Semantic error | |
130 | SDP0099 | No further address space available |