COBOL Manual for TNS and TNS/R Programs

Data Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
7-30
Sort-Merge File Description Entries
REPORT Clause
HP COBOL does not support the report-writing feature of ISO/ANSI COBOL. If the
REPORT clause is present, the compiler checks it for syntactic validity and reports an
error.
report
is irrelevant.
Sort-Merge File Description Entries
Each SORT or MERGE operation refers to a sort-merge file. The sort-merge file
description (SD) describes the size, structure, and names of data records in a sort-
merge file.
A sort-merge file description must begin with sort-merge file description followed by a
file name. The optional clauses can follow in either order. A period ends the whole
entry. One or more record descriptions must then follow. No input-output statements
can be executed for this type of file. The system-file-name specified in the file-
control entry associated with this file identifies the sort-merge scratch file or volume.
file-name
is the highest qualifier for both the sort-merge file description entry and its records.
It must be unique within the program.
REPORTS
REPORT
ARE
report
IS
VST088.vsd
.
file-name
RECORD CONTAINS clause
DATA RECORDS clause
VST089.vsd