COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Cause
The VARYING phrase is appears in a SEARCH ALL statement.
343 (Error)
Not permitted in declaratives
Cause
A SORT or a MERGE statement appears in the Declaratives Portion of the Procedure Division.
344 (Error)
Key within table or has variable size
Cause
A reference in an ASCENDING KEY or DESCENDING key phrase identifies a data item that
has a variable size or is referenced by an OCCURS clause.
345 (Error)
Key not found within sort-merge file record
Cause
A reference in an ASCENDING KEY or DESCENDING key phrase identifies a data item defined
in the record descriptions of the sort-merge file.
346 (Error)
Key not contained within minimum sort-merge file record
Cause
The key data item is not completely contained within the shortest possible record of the sort-merge
file.
347 (Error)
Prime record key inconsistent with major sort-merge key
Cause
A GIVING phrase specifies an indexed file, but the major sort-merge key does not have the
ASCENDING attribute or does not occupy the same character positions within the sort-merge
file records as the prime key item occupies within the indexed file records.
348 (Error)
Record size incompatible with sort-merge file description
Cause
One of:
The longest possible record of a USING file exceeds the record capacity of the sort-merge
file.
The longest possible record of the sort-merge file exceeds the record capacity of a GIVING
file.
349 (Error)
Random access not permitted
Cause
A MERGE, SORT, or START statement specifies a file name described with random access.
Message List 1155