Writing Routines to Handle Special Installation Input The CMS Batch Facility can handle user-specified control language and
special installation batch facility/JOB control cards. These handling
mechanisms are built into the system in the form of user exits from
batch; you are responsible for generating two routines to make use of
them. These routines must be namedBATEXITl and BATEXIT2, respectively,
and must have a filetype ofTEXT and a filemode number of 2 if placed on the system disk or an extension of the system disk. (See the for information on how to write and use CMS Batch Facility
control The routines you write are responsible for saving
registers, including general register 12, which saves addressability for
the batch facility. These routines (if made available on the system
disk) are included with theeMS Batch Facility each time it is loaded. BATEXIT1: PROCESSING USER-SPECIFIED CONTROL LANGDAGE BATEXIT1 is an entry point provided so that users may write their own
routine to checknon-CMS control statements. For example, a routine
could be written to scan for theOS job control language needed to
compile, link edit, and execute aFORTRAN job. BATEXITl receives
control after each read from theCMS Batch Facility virtual card reader
is issued. General register 1 contains the address of the batch
facility read buffer, which contains the card image to be executed by
the batch' facility. This enablesBATEXITl to scan each card it receives
as input for the type of control information you specify.
If, after the card is processed byBATEXIT1, general register 15
contains a nonzero return code, theeMS Batch Facility flushes the card
and reads the next card. If a zero is returned in general register 15,
the batch facility continues processing by passing the card toCMS for
execution.BATEXIT2: PROCESSING THE BATCH FACILITY /JOB CONtROL CARD BATEXIT2 is an entry point provided so that users can code their own
routine to use the/JOB card for additional information. EATEXIT2 receives control before the VM/370 routine used to process the batch
facility/JOB card begins its processing, but after CMS has scanned the /JOB card and built the parameter list. When EATEXIT2 is processing,
general register 1 points to theCMS parameter list buffer. This buffer
is a series of 8-byte entries, one for each item on the/JOB card. If
the return code found in general register 15 resulting fromEATEXIT2 processing of this card is nonzero, an error message is generated and
the job is flushed. If general register 15 contains a zero, normal
checking done for a valid userid and the existence of an account Finally, execution of this job begins.
Part 3. Conversational MonitorSystem (CMS) 317
special installation batch facility
mechanisms are built into the system in the form of user exits from
batch; you are responsible for generating two routines to make use of
them. These routines must be named
and must have a filetype of
control
registers, including general register 12, which saves addressability for
the batch facility. These routines (if made available on the system
disk) are included with the
routine to check
could be written to scan for the
compile, link edit, and execute a
control after each read from the
is issued. General register 1 contains the address of the batch
facility read buffer, which contains the card image to be executed by
the batch' facility. This enables
as input for the type of control information you specify.
If, after the card is processed by
contains a nonzero return code, the
and reads the next card. If a zero is returned in general register 15,
the batch facility continues processing by passing the card to
execution.
routine to use the
facility
general register 1 points to the
is a series of 8-byte entries, one for each item on the
the return code found in general register 15 resulting from
the job is flushed. If general register 15 contains a zero, normal
checking
Part 3. Conversational Monitor