Dcl Commands For Developing Programs - Compaq COBOL AAQ2G1FTK User Manual

Compaq computer accessories user manual
Table of Contents

Advertisement

Developing Compaq COBOL Programs
1.3 Developing Programs on OpenVMS Alpha
Figure 1–2 DCL Commands for Developing Programs
COMMANDS
$
EDIT/TPU PROG_1.COB
Use the file type of
indicate the file contains a
Compaq COBOL program.
$
COBOL PROG_1
The
COBOL
assumes the file type of an
input file is
(if you use the
qualifier, the compiler
creates a listing file.)
$
LINK PROG_1
The
LINK
the file type of an input file
is
OBJ
.
(If you use the
the linker creates a map file.)
$
RUN PROG_1
The
RUN
the file type of an image is
EXE
.
Figure 1–2 shows the basic steps in Compaq COBOL program development.
Use the text editor of your preference to create and revise your source files. For
example, the following command line invokes the DECTPU editor and creates the
source file PROG_1.COB:
$ EDIT PROG_1.COB
The file type .COB is used to indicate that you are creating a Compaq COBOL
program. COB is the default file type for all Compaq COBOL programs.
The COPY Statement, Dictionaries and Libraries
Including the COPY statement in your program allows separate programs to
share common source text, reducing development and testing time as well as
storage requirements. You can use the COPY statement to access modules in
libraries. The COPY statement causes the compiler to read the file or module
specified during the compilation of a program. When the compiler reaches the
end of the included text, it resumes reading from the previous input file.
By using the /INCLUDE qualifier on the COBOL command line, you can set up a
search list for files specified by the COPY statement. For more information, see
the Compaq COBOL Reference Manual.
1–28 Developing Compaq COBOL Programs
ACTION
COB
to
Create a
source program
Command
Compile the
COB
.
source program
/LIST
command assumes
Link the
object module
/MAP
qualifier,
Run the
command assumes
executable
image
INPUT/OUTPUT FILES
PROG_1.COB
PROG_1.OBJ
(PROG_1.LIS)
libraries
PROG_1.EXE
(PROG_1.MAP)
VM-0611A-AI

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?

Table of Contents