COBOL/400 Language Help

file-name-4

File-name-4 represents the output files.

When you specify the GIVING phrase, all the merged records in file-name-1 are automatically transferred to the output files (file-name-4).

If file-name-1 is a logical database file, the records are added to the end of the file.

If file-name-4 references an INDEXED file, then the associated KEY data-name for that file must have an ASCENDING KEY phrase in the MERGE statement. This same data-name must occupy the identical character positions in its record as the data item associated with the prime record key for the file.

If file-name-4 references an RELATIVE file, the relative key data item for the first record returned contains the value '1' ; for the record returned, the value '2', and so on. After execution of the MERGE statement, the content of the relative kay data item indicates the last record returned to the file.

All output files must have a sequential, relative or indexed organization.


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