4.2.2 SELECT Clause
The SELECT clause chooses a file in the COBOL program to be associated
with an external data set.
When file-name-1 specifies a sort or a merge file, only the ASSIGN clause
can follow the SELECT clause.
Can be specified only for files opened in the input, I-O, or extend
mode. You must specify SELECT OPTIONAL for such input files that are
not necessarily present each time the object program is executed. For
more information, see the IBM COBOL Programming Guide for your
Must be identified by an FD or SD entry in the Data Division. A
file-name must conform to the rules for a COBOL user-defined name,
must contain at least one alphabetic character, and must be unique
within this program.
If the file connector referenced by file-name-1 is an external file
connector, all file control entries in the run unit that reference this
file connector must have the same specification for the OPTIONAL phrase.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
IBM Hardware |
IBM System z Redbooks
How to order publications
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Download IBM Softcopy Librarian
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.