Submitting Virtual Card Input to the CMS Batch Facility
Virtual card input can be spooled to the batch machine in several ways. You may
create a CMS file that contains the input control cards and use the CMS PUNCH command to punch the
virtual cards:
punch batch jcl (noheader
When you punch a file this way, you must use the NOHEADER option of
the PUNCH command, since the CMS batch facility cannot interpret the header card that is usually
produced by the PUNCH command. As it does with cards in an incorrect format, the batch virtual
machine would erase the header card.You can use an EXEC procedure to submit input to the batch machine.
From an EXEC, you can punch one line at a time into your virtual punch,
using the EXECIO command. When you do this, you must remember to issue
the CP CLOSE command to release the spool punch file when you are
finished. For example:
close punch
If you are using the
exec to punch individual lines and entire CMS files to be read by
the batch virtual machine as one continuous job stream, you must remember
to spool your punch as follows:
/* EXEC to submit a batch job to CMS BATCH */
'SPOOL PUNCH CONT TO BATCH3'
'EXECIO 1 PUNCH (STRING /JOB MCGUIRE 999888'
'PUNCH BATCH JCL * (NOHEADER'
'SPOOL PUNCH NOCONT CLOSE'