6.2.27.10 Varying Phrase Rules
No matter how many variables are specified, the following rules apply:
- In the VARYING/AFTER phrases, when an index-name is specified:
- The index-name is initialized and incremented or decremented
according to the rules under "INDEXED BY Phrase" in
topic 5.3.10.3. (See also "SET Statement" in topic 6.2.33.)
- In the associated FROM phrase, an identifier must be described as
an integer and have a positive value; a literal must be a positive
integer.
- In the associated BY phrase, an identifier must be described as an
integer; a literal must be a nonzero integer.
- In the FROM phrase, when an index-name is specified:
- In the associated VARYING/AFTER phrase, an identifier must be
described as an integer. It is initialized, as described in the
SET statement.
- In the associated BY phrase, an identifier must be described as an
integer and have a nonzero value; a literal must be a nonzero
integer.
- In the BY phrase, identifiers and literals must have nonzero values.
- Changing the values of identifiers and/or index-names in the VARYING,
FROM, and BY phrases during execution changes the number of times the
procedures are executed.
© 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.