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

4.2.15 I-O-CONTROL Paragraph



The I-O-CONTROL paragraph of the Input-Output Section specifies when checkpoints are to be taken and the storage areas to be shared by different files. This paragraph is optional in a COBOL program.

The key word I-O-CONTROL can appear only once, at the beginning of the paragraph. The word I-O-CONTROL must begin in Area A, and must be followed by a separator period.

Each clause within the paragraph can be separated from the next by a separator comma or a separator semicolon. The order in which I-O-CONTROL paragraph clauses are written is not significant. The I-O-CONTROL paragraph ends with a separator period.


    ___ Sequential I-O-Control Entries _______________________________________________________________ 
   |                                                                                                  |
   |                 (1)                                                                              |
   | >>__ _RERUN__ON_____ _assignment-name-1_ __ _______ __| phrase 1 |_______________________ ____>< |
   |     |               |_file-name-1_______|  |_EVERY_|                                     |       |
   |     |                                                   <________________                |       |
   |     |                                                                 (2)|               |       |
   |     |_SAME__ ________ __ ______ __ _____ __file-name-3____file-name-4____|_______________|       |
   |     |       |_RECORD_|  |_AREA_|  |_FOR_|                                                |       |
   |     |               (3)                         <______________________________________  |       |
   |     |_MULTIPLE FILE_____ ______ __ __________ ____file-name-5__ _____________________ _|_|       |
   |     |                   |_TAPE_|  |_CONTAINS_|                 |_POSITION__integer-2_|   |       |
   |     |                    (3)           <_______________                                  |       |
   |     |_ APPLY WRITE-ONLY _____ ______ ____ file-name-2 _|_________________________________|       |
   |                              |_ ON _|                                                            |
   |                                                                                                  |
   | phrase 1:                                                                                        |
   | |__ _integer-1__RECORDS____ __ ____ __file-name-1______________________________________________| |
   |    |_END__ ____ __ _REEL_ _|  |_OF_|                                                             |
   |           |_OF_|  |_UNIT_|                                                                       |
   |                                                                                                  |
   | Notes:                                                                                           |
 X | (1)  ON is optional as an IBM extension.                                                         |
   |                                                                                                  |
 X | (2)  File-name-4 is optional as an IBM extension.                                                |
   |                                                                                                  |
 X | (3)  The MULTIPLE FILE clause and APPLY WRITE-ONLY clause are not supported for OS/390 VSAM      |
   |      files and are treated as comments on AIX, OS/2, and Windows.                                |
   |                                                                                                  |
   |__________________________________________________________________________________________________|


    ___ Relative and Indexed I-O-Control Entries ______________________________________ 
   |                                                                                   |
   |                 (1)                                                               |
   | >>__ _RERUN__ON_____ _assignment-name-1_ __ _______ __| phrase 1 |_________ ___>< |
   |     |               |_file-name-1_______|  |_EVERY_|                       |      |
   |     |                                                   <________________  |      |
   |     |                                                                 (2)| |      |
   |     |_SAME__ ________ __ ______ __ _____ __file-name-3____file-name-4____|_|      |
   |             |_RECORD_|  |_AREA_|  |_FOR_|                                         |
   |                                                                                   |
   | phrase 1:                                                                         |
   | |__integer-1__RECORDS__ ____ __file-name-1______________________________________| |
   |                        |_OF_|                                                     |
   |                                                                                   |
   | Notes:                                                                            |
 X | (1)  ON is optional as an IBM extension.                                          |
   |                                                                                   |
 X | (2)  File-name-4 is optional as an IBM extension.                                 |
   |                                                                                   |
   |___________________________________________________________________________________|


 X  ___ Line Sequential I-O-Control Entries (Workstation Only) ________________________ 
 X |                                                                                   |
 X |                                                         <_____________            |
 X | >>____SAME__ ________ __ ______ __ _____ __file-name-3____file-name-4_|________>< |
 X |             |_RECORD_|  |_AREA_|  |_FOR_|                                         |
   |                                                                                   |
   |___________________________________________________________________________________|

    ___ Sort Merge I-O-Control Entries (OS/390 and VM Only) ________________ 
   |                                                                        |
   | >>__ ________________________________________ _______________________> |
   |     |_ RERUN __ ______ __ assignment-name-1 _|                         |
   |                |_ ON _|                                                |
   |                                                                        |
   |    <_______________________________________________________            |
   | >____SAME__ _RECORD_____ __ ______ __ _____ __| phrase 1 |_|________>< |
   |            |_SORT_______|  |_AREA_|  |_FOR_|                           |
   |            |_SORT-MERGE_|                                              |
   |                                                                        |
   | phrase 1:                                                              |
   |                 <________________                                      |
   |                               (1)|                                     |
   | |__file-name-3____file-name-4____|___________________________________| |
   |                                                                        |
   | Note:                                                                  |
 X | (1)  File-name-4 is optional as an IBM extension.                      |
   |                                                                        |
   |________________________________________________________________________|


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.