cards is a decimal number that specifies the maximum number of cards
a job can punch.
The default values for the batch facility are set at 32,767 seconds,
printed lines, and punched cards per job. Any new limits defined using
the /SET card must be less than these maximum settings. The system
resources can be set at lesser values than the default values by an
installation's system programmer; be sure you know the maximum
installation values for batch resource limits before you use the /SET card.
A /SET card can appear anywhere in the job following the /JOB card.
The new limits defined by the /SET card apply only to the part of the
job that follows the /SET card.
A job can contain up to three /SET cards (one for each operand); a /SET card cannot be entered more than once for the same operand.
Only use /SET cards for the operands whose values you want to change
from the default; the default values are reset between jobs. ! /SET card for an operand overrides its default but does not reset the other
operands. HOW THE BATCH FACILITY WORKS The CMS batch facility, once initialized, runs continuously. When it
begins executing a job, it sends a message to the userid of the user
submitting the job. If you are logged on when the batch machine begins
executing a job that you sent it, you receive the message: MSG FROM BATCHID: JOB 'yourjob' STARTED When the batch machine finishes processing a job, it sends the message: MSG FROM BATCHID: JOB 'yourjob' ENDED
where yourjob is the jobname you specified on the /JOB card. Before it
reads the next job from its card reader, the batch virtual machine: Closes all spooling devices and releases spool files Resets any spooling devices identified by the CP TAG command Detaches any disk devices that were accessed Punches accounting information to the system Reloads CMS All of this "housekeeping" is done by the CMS batch facility so that
each job that is executed is unaffected by any previous jobs.
If a job that you sent to the batch virtual machine terminates
abnormally (abends), the batch machine sends you a message: MSG FROM BATCHID: JOB 'yourjob' ABEND
and spools a CP storage dump of your virtual machine to the printer.
The remainder of your job is flushed. Whenever the batch virtual machine has read and executed all of the
jobs in its card reader, it waits for more input. 230 IBM VM/370 CMS User's Guide
April 27, 1981
Preparing Jobs for Batch Execution When you want to submit a job to the eMS batch facility for execution, you should provide the same CMS and CP commands you would use to prepare
to execute the same job in your own virtual machine. You must provide the batch virtual machine with read access to any
disk input files that are required for the job. You do this by supplying
the LINK and ACCESS command lines necessary. The batch virtual machine
has an A-disk (195), so you can enter commands to access your disks as
read-only extensions. For example, if you wanted the batch machine to
execute a program module named LONDON on your 291 disk, your input file
might contain the following: /JOB FISH 012345 CP LINK BOSWELL 291 291 RR SECRET ACCESS 291 B/A LONDON Similarly, if you are using the
program using input and output
definitions: CP LINK ARDEN 391 391 RR FOREST ACCESS 391 BjA
batch virtual machine to
files, you must supply
FILEDEF INFILE DISK VITAL STAT B
FILEDEF OUTFILE PUNCH CP SPOOL PUNCH TO BOSWELL LONDON execute a
the file
If you expect printed or punched output from your job, you may need
to include the spooling commands necessary to control the output. In
the above example, the batch machine's punch is spooled to userid BOSWELL's virtual reader. Any output printer files produced by your job are spooled by the
batch virtual machine to the printer. These files are spooled under your
userid and with the distribution code associated with your userid,
provided the userid's directory has the accounting option set. You can
change the characteristics of these output files with the CP SPOOL command: CP SPOOL E CLASS T
If you want output to appear under a name other than your userid, use
the FOR operand of the SPOOL command: CP SPOOL E FOR JONSON Output punch files are spooled, by default, to the real system card
punch (under your userid), unless you issue a SPOOL command in the batch
job to control the virtual card punch of the batch virtual machine. Section 12. Using the CMS Batch Facility 231
Previous Page Next Page