Performing Miscellaneous eMS Functions
TheCftS Batch Facility and error printouts are described below. CMS BATCH FACILITY The CMS Batch Facility is a function of CMS. It provides a vay of
entering individual user jobs through an activeCMS machine from the
virtual card reader rather than from the console. The batch facility
reissues theIPL com.and after each job.
TheCMS Batch Facility consists of tvo modules: DMSBTB, the bootstrap
routine (a nonrelocatableCMS module file) and DMSBTP, the processor
routine (a relocatableCMS text file that runs free storage).
Thebootstrap module, DMSBTB, loads the processor routine DMSBTP and the
user exit routinesBATEXIT1 and BATEXIT2 (if they exist) into free
storage.DMSBTB first ensures that DMSINS (eMS initialization) has set the BATRUI and BATLOAD flags on in the CMS nucleus constant area indicating
that either an explicit batch initial program load command has been
issued or that theCftSBATCH command has been issued immediately after
initial program load has taken place. If not, errormessage DMSBTB101E is typed and the batch console returns to a normal CftS interactive
environment.STATE (DMSSTT) is then called to confirm the existence of
the processor fileDftSBTP TEXT. If the file does not exist, error
messageDMSTBT100E is typed and the batch console returns to the cas interactive environment. Using the "state" copy of the file status table (FST) for DMSBTP, DMSBTB computes the size of TEXT file by multiplying the logical
record length by the nu.ber of logical records (noDS constants). A free storage request is made for the size of DMSBTP and the address of
the r9utine is then stored atABATPROC in the NUCON area of the eMS nucleus.
The existence of the user exit routines is determined bySTATE. If
they exist, their sizes are included in the request for free storage.
The free storage address is translated into graphic hexadecimal
for. at and theCMS LOAD command is issued to load the DMSBTP TEXT file
into the reserved free storage area. The user exit routines,BATEXITl TEXT and BATEXIT2 TEXT are also loaded at this time. If these files do
not exist, an unresolved external reference error code is returned by
the loader, but is ignored byDMSBTB because these routines are
optional. If an error (other than unresolved names) occurs, error
.essageDMSBTB101E is typed and the batch console returns to the ees interactive environment.
The loader tables are searched
pointDMSBTPAB in the loaded batch
for the address of theABEND entry
processor.When the entry is found, eMS Method of Operation and program organization 2-149
The
entering individual user jobs through an active
virtual card reader rather than from the console. The batch facility
reissues the
The
routine (a nonrelocatable
routine (a relocatable
The
user exit routines
storage.
that either an explicit batch initial program load command has been
issued or that the
initial program load has taken place. If not, error
environment.
the processor file
message
record length by the nu.ber of logical records (no
the r9utine is then stored at
The existence of the user exit routines is determined by
they exist, their sizes are included in the request for free storage.
The free storage address is translated into graphic hexadecimal
for. at and the
into the reserved free storage area. The user exit routines,
not exist, an unresolved external reference error code is returned by
the loader, but is ignored by
optional. If an error (other than unresolved names) occurs, error
.essage
The loader tables are searched
point
for the address of the
processor.