5.2.1 File Section
The File Section must contain a level indicator for each input and output
- For all files except sort/merge, the File Section must contain an FD
- For each sort or merge file, the File Section must contain an SD
Must follow the level indicator (FD or SD), and must be the same as
that specified in the associated SELECT clause. The file-name must
adhere to the rules of formation for a user-defined word; at least one
character must be alphabetic. The file-name must be unique within
One or more record description entries must follow the file-name.
When more than one record description entry is specified, each entry
implies a redefinition of the same storage area.
The clauses that follow file-name are optional; they can appear in any
FD (Formats 1, 2, and 3)
The last clause in the FD entry must be immediately followed by a
SD (Format 4)
An SD entry must be written for each sort or merge file in the
program. The last clause in the SD entry must be immediately followed
by a separator period.
The following example illustrates the File Section entries needed for
a sort or merge file:
01 SORT-RECORD PICTURE X(80).
© 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.