Kednos PL/I for OpenVMS Systems User Manual
*HyperReader
|
2.1 DCL Commands for Program Development
This section describes the DCL commands that are used
to create, compile, link, and run a PL/I program on an
OpenVMS system. Figure 2-1 shows the steps in creating a
program.
The commands to perform the actions shown in Figure 2-1
are as follows:
1 EDIT/EDT AVERAGE.PLI
2 PLI AVERAGE
3 LINK AVERAGE
4 RUN AVERAGE
PLI is the default file type for PL/I source files. You do not
have to specify the file type when you compile the source file.
If your source program compiles successfully, the compiler
creates an object file with the file type OBJ. If the compiler
detects errors, the system displays each error on your screen
and then displays the DCL prompt.
The /LIST qualifier causes the compiler to produce a listing
file, as follows:
$ PLI/LIST AVERAGE
In this example, AVERAGE is the name of the program.
Section 2.3.2 lists the command qualifiers for the PLI com-
mand.
To create an executable image file from the sucessfully com-
piled program, invoke the OpenVMS Linker. The linker uses
the object file as input to produce an executable image file as
output.
Section 2.4.2lists and explains the command qualifiers for the
LINK command.
To run your program after the executable image file has been
created, use the DCL command RUN.