6.2.19.2 Transferring Control
If the condition tested is true, one of the following actions takes place:
- If statement-1 is specified, it is executed. If statement-1 contains
a procedure branching or conditional statement, control is
transferred, according to the rules for that statement. If
statement-1 does not contain a procedure-branching statement, the ELSE
phrase, if specified, is ignored, and control passes to the next
executable statement after the corresponding END-IF or separator
period.
- If NEXT SENTENCE is specified, control passes to an implicit CONTINUE
statement immediately preceding the next separator period.
If the condition tested is false, one of the following actions takes
place:
- If ELSE statement-2 is specified, it is executed. If statement-2
contains a procedure-branching or conditional statement, control is
transferred, according to the rules for that statement. If
statement-2 does not contain a procedure-branching or conditional
statement, control is passed to the next executable statement after
the corresponding END-IF or separator period.
- If ELSE NEXT SENTENCE is specified, control passes to an implicit
CONTINUE STATEMENT immediately preceding the next separator period.
- If neither ELSE statement-2 nor ELSE NEXT STATEMENT is specified,
control passes to the next executable statement after the
corresponding END-IF or separator period.
Note: When the ELSE phrase is omitted, all statements following the
condition and preceding the corresponding END-IF or the separator period
for the sentence are considered to be part of statement-1.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.