COBOL/400 Language Help

I-O CONTROL Paragraph Format 3 (Sort/Merge Files)

Format 3 (Sort/Merge Files)
 
->->--I-O-CONTROL.----------------------------------------------------------->
 
 ->-*---------------------------------------------------------------------*-><-
   + *---------------------------------------------------------------*   +
   + +                                               *-------------* +   +
   + V                                               V             + +   +
   *-SAME-*------------*-*------**-----*-file-name-3-*-------------*-*---*
          *-RECORD-----* *-AREA-**-FOR-*             *-file-name-4-*
          *-SORT-------*
          *-SORT-MERGE-*

RERUN

MULTIPLE FILE

The MULTIPLE FILE TAPE clause specifies that two or more files share the same physical reel of tape.

This clause is syntax-checked, but it has no effect on the running of the program. The function is provided by the system through the CRTTAPF, CHGTAPF, and OVRTAPF CL commands.

assignment-name-1

Assignment-name-1 can be any user defined word.

integer-1

AREA

The SAME AREA clause specifies that two or more files, that do not represent sort or merge files, are to use the same main storage area during processing.

The files named in a SAME AREA clause need not have the same organization or access.

file-name-3 or -4

You must specify file-name-3 and file-name-4 in the FILE-CONTROL paragraph of the same program.

SAME RECORD AREA

file-name-3 or -4

You must specify file-name-3 and file-name-4 in the FILE-CONTROL paragraph of the same program.

SORT-MERGE

The SAME SORT-MERGE AREA clause is equivalent to the SAME SORT AREA clause. The SAME SORT-MERGE AREA clause is syntax-checked, but has no effect on the execution of the program.

When you specify the SAME SORT-MERGE AREA clause, at least one file-name specified must name a sort or merge file.

SORT

The SAME SORT AREA clause is equivalent to the SAME SORT-MERGE AREA clause. The SAME SORT AREA clause is syntax-checked, but has no effect on the execution of the program.

When you specify the SAME SORT AREA clause, at least one file-name specified must name a sort file.

file-name-2

File-name-2 must be a sequentially organized file.

COMMITMENT CONTROL


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