Developing Compaq COBOL Programs
1.2 Developing Programs on Tru64 UNIX
An example
cobol
command line would be:
% cobol -v test.cob pas.o
This command specifies the following:
•
The
-v
flag displays the compilation and link passes with their arguments
and files, including the libraries passed to
ld
.
•
The file
test.cob
is passed to the Compaq COBOL compiler for compilation.
The resulting object file is then linked.
•
The object file
pas.o
is passed directly to the linker.
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
cobol
command affect how the compiler processes a file. The
simplest form of the
cobol
command is often sufficient.
If you compile parts of your program (compilation units) using multiple
cobol
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
Developing Compaq COBOL Programs 1–11
Содержание COBOL AAQ2G1FTK
Страница 22: ......
Страница 30: ......
Страница 94: ......
Страница 110: ......
Страница 146: ......
Страница 180: ......
Страница 194: ...Processing Files and Records 6 1 Defi...
Страница 300: ......
Страница 490: ......
Страница 516: ......
Страница 517: ......
Страница 530: ......
Страница 534: ......
Страница 590: ......
Страница 620: ......