Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

6.2.27.10 Varying Phrase Rules



No matter how many variables are specified, the following rules apply:

  1. In the VARYING/AFTER phrases, when an index-name is specified:
    
    
    1. 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.)
      
      
    2. 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.
      
      
    3. In the associated BY phrase, an identifier must be described as an integer; a literal must be a nonzero integer.
      
      

  2. In the FROM phrase, when an index-name is specified:
    
    
    1. In the associated VARYING/AFTER phrase, an identifier must be described as an integer. It is initialized, as described in the SET statement.
      
      
    2. 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.
      
      

  3. In the BY phrase, identifiers and literals must have nonzero values.
    
    
  4. 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.


Previous Topic Next Topic © 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.