ILE COBOL Programmer's Guide

Environment Division

Environment Division

Order of DATA DIVISION and ENVIRONMENT DIVISION

OPM COBOL/400 is fairly relaxed about intermixing the order of the DATA DIVISION and ENVIRONMENT DIVISION. OPM COBOL/400 issues severity 10 and severity 20 messages when it encounters clauses, phrases, sections and divisions that are not in the proper order.

ILE COBOL does not allow the order of the DATA DIVISION and ENVIRONMENT division to be intermixed. ILE COBOL issues severity 30 messages when it encounters clauses, phrases, sections and division that are not in the proper order.

FILE-CONTROL and I-O-CONTROL Paragraphs

If a duplicate clause occurs in a FILE-CONTROL entry or I-O-CONTROL entry, and only one such clause is allowed, OPM COBOL/400 uses the last such clause specified.

In the same situation, ILE COBOL uses the first such clause specified.

SELECT Clause

The OPM COBOL/400 compiler accepts multiple SELECT clauses that refer to a given file name, if the attributes specified are consistent. In some cases no error messages are issued. In others, severity 10, or severity 20 messages are issued. In the case where attributes specified are inconsistent, severity 30 messages are issued.

The ILE COBOL compiler issues severity 30 messages in all cases of multiple SELECT clauses that refer to a given file name.


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