The following example can be substituted into the Compile section of the Workbook page, Compile, Link and Run to do the work using the PREPMORT command.
You can do the following work from any directory, but the job will be easier to understand if you start with a directory that is empty.
SET DEFAULT to that directory.
Copy the example Prepmort program to that directory.
> COPY SLACVX::DISK$SLD_FAC0:[SLDWWW.WORKBOOK]WBPREP1.PREPMORT *
Take a look at the file so that you understand what it is supposed to do.
Compile it with the PREPMORT command.
> PREPMORT WBPREP1
If the compilation is successful, no messages will be issued.
If you then do a DIR, you should have three files in your directory:
WBPREP1.MORTFORT;1 WBPREP1.OBJ;1 WBPREP1.PREPMORT;1 Total of 3 files.The PREPMORT command created two output files, a
MORTFORT file and an OBJ file.
OBJ file is the final output from the compiler.
It is a piece of "Ojbect Code,"
that is, it is a translation of your Prepmort into machine language.
MORTFORT file is an intermediate step from the compilation
process. It is left behind for use by the debugger (to be discussed later in
this section of the Workbook).
The PREPMORT command can also be written as PM. Both commands actually invoke the same code.