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.3 PERFORM with TIMES Phrase



The procedure(s) referred to in the TIMES phrase PERFORM statement are executed the number of times specified by the value in identifier-1 or integer-1. Control then passes to the next executable statement following the PERFORM statement.


    ___ Format 2 _________________________________________________________________ 
   |                                                                              |
   | >>__PERFORM________________________________________________________________> |
   |                                                                              |
   | >__ _procedure-name-1__ ______________ __ _identifier-1_ __TIMES_____ ____>< |
   |    |                   |_| phrase 1 |_|  |_integer-1____|            |       |
   |    |                                                 (1)             |       |
   |    |_ _identifier-1_ __TIMES__imperative-statement-1_____END-PERFORM_|       |
   |      |_integer-1____|                                                        |
   |                                                                              |
   | phrase 1:                                                                    |
   | |__ _THROUGH_ __procedure-name-2___________________________________________| |
   |    |_THRU____|                                                               |
   |                                                                              |
   | Note:                                                                        |
 X | (1)  Imperative-statement-1 is optional as an IBM extension.                 |
   |                                                                              |
   |______________________________________________________________________________|

Note: If procedure-name-1 is specified, imperative-statement and the END-PERFORM phrase must not be specified.

identifier-1

X Must name an integer item. Identifier-1 cannot be a windowed date
X field.

If identifier-1 is zero or a negative number at the time the PERFORM statement is initiated, control passes to the statement following the PERFORM statement.

After the PERFORM statement has been initiated, any change to identifier-1 has no effect in varying the number of times the procedures are initiated.

integer-1

X Can be a positive signed integer.


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.