THE VMPAS8 EXEC PROCEDURE If you are an assembler language programmer and you are using the UPDATE command to update source programs you may want to use the VMPASH EXEC procedure. VMPASM is a VM/370 update procedure; it invokes the UPDATE command and then uses the ASSEMBLE command to assemble the updated
source file.
If you are not an assembler language programmer, youmay wish to
create anEXEC similar to VMFASM that, instead of calling the assembler,
calls one of the language compilers to compile an updated source file.When you use VMPASM, you specify the source filename, the filename of
the control file, and optionally, parameters for the assembler. (The
control file forVMFASM must have a filetype of eNTRL). For example, if
you use the file GENERAL CNTRL to updateSA8PLE ASSEMBLE, you enter the command line: v_fasm sample general
TheV8FASM EXEC uses the MACS card and the update level identifiers
in the control file. It reads theMACS card to determine which macro
libraries(MACLIBs) should be searched by the assembler. Then VMPASM issues the GLOBAL MACLIB command specifying the MACLIBs you name on the MACS card.
The update level identifier is used byVMFASM to name the output text file produced by the assembly. If the update level identifier of the
most recent update file (the last one located and applied) is anything
other thanTEXT, the update level identifier is prefixed with the
charactersTXT to form the filetype. Por example, if the file GENERAL
CNTRL contains the records:TEXT MACS CMSLIB MILIB OSMACRO UP2 PIX2 UPl PIXl TEXT AUXLIST and it is used to update the file SAMPLE ASSEMB,LE, then: • If the file SAMPLE UPDTPIX2 is found and the updates applied, iMPASH names the output text deck SAMPLE TXTUP2. • If the file SAMPLE UPDTPIX1 is found and the updates applied but no SAMPLE UPDTFIX2 is found, the text deck is named SAMPLE TXTUP1. • If the file SAMPLE AUXLIST is found but no SAMPLE UPDTFIX1 or SAMPLE UPDTFIX2 files are found, the text deck is named SAMPLE TEXT. • If no files are found, the update level identifier on the MACS card
is used and the text deck is namedSAMPLE TEXT. Since the UPDATE command works from the bottom
toward the top, it is logical that the text filename
identifier of the last update applied.
of a control filebe taken from the
TheVMFASM EXEC does not produce an updated source file, but leaves
the original source intact.iMFASM produces two output files: a printed
output listing that shows update activity; and the text file, which
contains the update log as well as the actualobject code. If you use
theeMS LOAD command to load a text file produced by iMFASM, records
from the update log are flagged as invalid, but theLOAD operation is
not impaired.VM/370 CMS User's Guide
source file.
If you are not an assembler language programmer, you
create an
calls one of the language compilers to compile an updated source file.
the control file, and optionally, parameters for the assembler. (The
control file for
you use the file GENERAL CNTRL to update
The
in the control file. It reads the
libraries
The update level identifier is used by
most recent update file (the last one located and applied) is anything
other than
characters
CNTRL contains the records:
is used and the text deck is named
toward the top, it is logical that the text filename
identifier of the last update applied.
of a control file
The
the original source intact.
output listing that shows update activity; and the text file, which
contains the update log as well as the actual
the
from the update log are flagged as invalid, but the
not impaired.