COBOL/400 Language Help

Format 5 (Sort/Merge Files)

Description
The File Section must contain a level indicator for each input and output file.

You must write an SD entry 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 a File Section entry for a sort or merge file:


SD SORT-FILE.
01 SORT-RECORD PICTURE X(80).
Format 5 (Sort/Merge Files)
 
  ->->--------SD file-name------------------------------------------->
 
  ->--*---------------------------------------------------------*--->
     *RECORD**--------*-integer-3-*----------*---------------*-*
            +*CONTAINS*           *CHARACTERS*               +
            **--------*-integer-4 TO integer-5-*----------*--*
             *CONTAINS*                        *CHARACTERS*
 
  ->--*-----------------------------------*--.----------------------><-
     +                     *-----------* +
     +                     V           + +
     *DATA-*-RECORD-*---**-data-name-2-*-*
           +        *IS-*+
           *-RECORDS*---**
                    *ARE*


[ Top of Page | Previous Page | Next Page | Table of Contents ]