Compaq AAQ2G1FTK Marine Radio User Manual


 
D
Porting to Compaq COBOL from Other
Compilers
Compaq COBOL has built-in porting assistance that recognizes foreign COBOL
extensions and helps you migrate programs from other systems. Porting
assistance is always enabled for some foreign extensions. However, for those
features that use new reserved words, this feature is selectively enabled at
compile time by qualifiers and flags on the COBOL command line.
Porting assistance provides the following features:
The ability to detect syntax from other COBOL implementations
The process of applying foreign reserved words (in other words, from other
COBOL implementations) in the presence of foreign COBOL extension syntax
Messages to help you recode those program steps that use the foreign
extensions
Support for selected syntax synonyms used in other COBOL implementations
D.1 Porting Assistance
Compaq COBOL porting assistance can help you port programs from other
COBOL implementations to Compaq COBOL. It does so by recognizing and
reporting occurrences of known extensions from other COBOL implementations
that are not implemented in Compaq COBOL (hence ‘‘foreign’’ extensions).
Some porting assistance is always present. Foreign extensions that do not need
new reserved words are always recognized and diagnosed as foreign extensions
(or, in a few cases, implemented as new features of Compaq COBOL).
The default is for full porting assistance to be turned off, but you can enable it at
compile time by adding the foreign extensions option to the COBOL command.
The option can be negated by a NO prefix. It can be used in combination with
other options, and is independent of those options. See Table 1–2, Compaq
COBOL Command Flags on Tru64 UNIX and Table 1–4, COBOL Command
Qualifiers for option syntax and defaults.
You enable full porting assistance by adding the foreign extensions option to the
compile command as follows:
On OpenVMS
/RESERVED_WORDS=FOREIGN_EXTENSIONS
On Tru64 UNIX
Porting to Compaq COBOL from Other Compilers D1