Developing Compaq COBOL Programs
1.2 Developing Programs on Tru64 UNIX
Figure 1–1 Commands for Developing Compaq COBOL Programs on Tru64UNIX
libraries
COMMANDS
Create a
source program
Run the
executable
image
% vi prog1.cob
Use the file type of cob
to indicate the file contains
a Compaq COBOL program.
% cobol prog1.o
The link command
assumes file type.no
% a.out
Type the output file name
to run the image.
ACTION
prog1.cob
a.out
INPUT/OUTPUT FILES
Compile the
source program
Link the
object module
(prog1.o,
prog1.lis)
% cobol -c prog1.cob
The cobol command
(If you use the -list flag,
assumes file type.
the compiler creates a
listing file; if you use the
no
VM-0610A-AI
-c flag, the compiler
creates an object file.)
Note: case of file names is significant.

1–8 Developing Compaq COBOL Programs