ANSI74 Entry Point Differences [ HP COBOL II/XL Reference Manual ] MPE/iX 5.0 Documentation
HP COBOL II/XL Reference Manual
ANSI74 Entry Point Differences
The following is a list of the ANSI COBOL'74 features accessible through
the ANSI74 entry point.
Exponentiation has been corrected as defined in the 1985 standard for the
following special cases:
* If a value less than or equal to zero is raised to a power of
zero, the size error condition results.
* If no real number exists as the result of an evaluation, the size
error condition results.
The CANCEL statement closes all files.
The STOP RUN statement closes all files.
The EXIT PROGRAM statement is executed when there is no next executable
statement in the called program.
The COPY statement follows ANSI COBOL'85 rules.
The following ANSI COBOL'85 features may be used[REV BEG] with ANSI74.
They are flagged as extensions if you specify $CONTROL STDWARN.[REV END]
* De-edited MOVE's
* Non-numeric literals > 132 characters
* Use of < > as a relational operator
* Use of the double negative (NOT < > )
When compiling statements from the report writer or the communications
module, the compiler issues a syntax error message.
The following new $CONTROL options may be used: SYNC16/SYNC32, DIFF74.
NOTE COBOL'68 syntax that was treated as comments by the compiler, is
implemented in the HP COBOL II compiler. However, use of this
feature in future programming is not suggested. (Refer to "System
Dependencies" in Appendix H for more information.) For
example, the PROCESSING MODE IS SEQUENTIAL phrase of the SELECT
statement is COBOL'68 syntax that is treated as comments.
MPE/iX 5.0 Documentation