An example
% cobol -v test.cob pas.o
This command specifies the following:
•
The
and files, including the libraries passed to
•
The file
The resulting object file is then linked.
•
The object file
As an additional example, you might find that your compiler command lines are
getting rather long, as shown in the following example:
% cobol -rsv foreign_extensions -flagger high_fips -warn information zeroes.cob
To work around this, you may truncate compiler flag options (arguments) to their
shortest unambiguous form, as follows:
% cobol -rsv for -flagger high -warn info zeroes.cob
1.2.2.2 COBOL Command Flags
Flags to the
simplest form of the
If you compile parts of your program (compilation units) using multiple
commands, flags that affect the execution of the program should be used
consistently for all compilations, especially if data will be shared or passed
between procedures.
For a complete list of Compaq COBOL flags, see Table 1–2. For more information
about the Compaq COBOL flags, access the reference (man) page for COBOL at
the Tru64 UNIX system prompt. For example:
% man cobol
command line would be:
cobol
-v
flag displays the compilation and link passes with their arguments
is passed to the Compaq COBOL compiler for compilation.
test.cob
is passed directly to the linker.
pas.o
command affect how the compiler processes a file. The
cobol
command is often sufficient.
cobol
Developing Compaq COBOL Programs
1.2 Developing Programs on Tru64 UNIX
.
ld
Developing Compaq COBOL Programs 1–11
cobol
Need help?
Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?
Questions and answers