USING EXEC PROCEDURES When alternating extensively between CMS and DOS/VS in a virtual Flace in an EXEC procedure the commands necessary to spool unit
record devices, punch the IPL deck, and punch a job stream. Then, when
sending a jcb to the card reader and initializing DOS/VS, a user only
has to enter the EXEC name and, in some cases, a few additional control
commands.
For examFle: The co.mand sequence (previously mentioned) could be
ccntained in an EXEC procedure, such as: CP SPOOL PUNCH KOCOHT CP CLOSE PUNCH PURGE CP CLOSE C CP PURGE READER ALL PUNCH SUPER JCL (NOH PUNCH START JCL (NOH PUNCH DOSTEST JCL (NOH CP IPL 250 If this EXEC procedure is named DOSJOB, then to execute this procedure,
all a user has to enter is:
dosjob Once the IPL command in the EXEC is performed, the virtual machine is no
lenger under the control of CMS. To begin DOS/VS operation, enter
attention interruptions and CP co.mands, as necessary.
A user can make an EXEC procedure more generalized. For example: To
make this EXEC capable of sending any job to the card reader, use the EXEC symbol &1 in place of the DOSTEST filename, such as: CP SPOOL PUNCH NOCONT CP CLOSE PUNCH PURGE CP CLOSE C CP PURGE READER ALL PUNCH SUPER JCL (NOH PUNCH START JeL (NOB PUNCH &1 JCL (NOH CP IPL 250 With this EXEC, a user can send any job to the card reader that has a CMS filetype of JCL. For example: If a user enters:
dosjob prog3
The EXEC variable symbol &1 is replaced with the argument PROG3 and the
file PROG3 JCL is punched to the card reader for execution under DOS/VS. Section 3. DOS/VS in a Virtual 8achine 99
As an additional aid when entering the commands and responses
necessary to IPL DOS/VS from the card reader, use the ceNT option of the SPOOL command. This option allows a user to spool the IPL commands and
jcb stream as a single spool file. For example: CP SPOOL PUNCH NOCONT CP CLOSE PUNCH PURGE CP CLOSE C CP PURGE READER ALL PUNCH SUPER JCL (NOH CP SPOOL 0 CONT PUNCH START JCL (NOH PUNCH DOSTEST JCL (NOH CP SPOOL 0 NOCONT CP IPL 250 When spooling the punch with the CONT operand, VM/370 spools the STABT JCL and DOSTEST JCL files as a single spool file. When the IPL commands
are read, DOS/VS continues reading from the card reader. A user does
not have to signal (with a null line) when DOS/VS is to begin reading
the job stream.
Continuous spooling bas an additional advantage in the IPL procedure. When issuing the IPL command, the virtual punch is closed. However, in
the previous example where the punch was spooled NOCONT, but not closed,
the IPL closes the punch. As the file is spooled to the reader, this
action causes a reader interruption, which is the first interruption
that a user has to enter (the one that causes DOS/VS to read the
supervisor name).
Thus, when executing this EXEC format, a user is required (after the IPL command is executed) to enter only one interruption and one REA£Y cOlmand to execute the entire job. The console sheet might look like
this:
dosjob
! !
display psw PSi = 030EOOOO 000128000 ready OOc begin
After issuing this BEGIN command, the remainder of the job is executed
without user intervention until the card reader is empty.
The eMS EXEC facility is described in detail in the Using More Than One Virtual Machine
In a DOS/VS virtual machine, if a user is running a job that may take a
1cng time to execute, he may want to free his terminal for other work.
In these situations, use the DISCONN command to disconnect the DeS/VS virtual machine and log onto some other userid.
This tOFic shows a sample procedure (using the userids CMSPREP1 and DOSTEST1), followed by a list of some additional things that must be
considered when disconnecting a terminal. While it is not necessary to use CMS to prepare or transmit the
jobs to the DOS/VS virtual machine, users may find it convenient. 100 IBM VM/310 operating Systems in a Virtual Machine
Previous Page Next Page