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 Input-Output Section



The Input-Output Section of the Environment Division contains two paragraphs:

The exact contents of the Input-Output Section depend on the file organization and access methods used. See "ORGANIZATION Clause" in topic 4.2.5 and "ACCESS MODE Clause" in topic 4.2.8.

Program Input-Output Section
The same rules apply to program and method I-O Sections.


X Class Input-Output Section

X The Input-Output Section is not valid for class definitions.


X Method Input-Output Section

X The same rules apply to program and method I-O Sections.


    ___ Programs  and Methods  _____________________________________________ 
   |                                                                        |
   |                                          (1)                           |
   | >>__INPUT-OUTPUT SECTION.__FILE-CONTROL._____________________________> |
   |                                                                        |
   |    <___________________________                                        |
   |                             (2)|                                       |
   | >____file-control-paragraph____|_____________________________________> |
   |                                                                        |
   | >__ ________________________________________________ _______________>< |
   |    |_I-O-CONTROL.__ ______________________________ _|                  |
   |                    | <_______________________     |                    |
   |                    |___i-o-control-paragraph_|__._|                    |
   |                                                                        |
   | Notes:                                                                 |
 X | (1)  If there are no files defined in the program and the INPUT-OUTPUT |
 X |      SECTION is specified and no file-control-paragraph is specified,  |
 X |      then the FILE-CONTROL paragraph-name is optional as an IBM        |
 X |      extension.                                                        |
   |                                                                        |
 X | (2)  If there are no files defined in the program and the FILE-CONTROL |
 X |      paragraph-name is specified, then the file-control-paragraph is   |
 X |      optional as an IBM extension.                                     |
   |                                                                        |
   |________________________________________________________________________|

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

file-control-paragraph
Names the files and associates them with the external data sets.

Must begin in Area B with a SELECT clause. It must end with a separator period. See "FILE-CONTROL Paragraph" in topic 4.2.1.

I-O-CONTROL
The key word I-O-CONTROL names the I-O-CONTROL paragraph.

input-output-control-paragraph
Specifies information needed for efficient transmission of data between the external data set and the COBOL program. The series of entries must end with a separator period. See "I-O-CONTROL Paragraph" in topic 4.2.15.

Subtopics:



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.