ALTERNATING BETWEEN OPERATING A virtual machine user may require the facilities of more than one system during a single terminal session. When running an system from a terminal, use the CMS editor
to create andmodify job streams and to analyze the results and output. programmers who normally use CftS to interactively create,
medify, and test programs, may require facilities for compilation or
execution that are not supported or available in The technique described in this topic uses multiple operating systems
consecutively. Job control cards, compiler or assembler source
programs, and test data streams are created and modified at the terminal
under control of the editor. The job stream is then executed, by
passing control to an appropriate operating system that has the
necessary facilities.
In this way, theprogrammer uses the terminal-oriented facilities of CMS to create and update source programs and JCL. When ready to compile or test, he can give control of his virtual machine to the operating
system. After execution is finished, he can give control back toCMS to
selectively scan and display printer and punch output at the terminal.
Thisapproach assumes that the programmer has created source program files and data files under CMS. To execute under another operating system (in this example, OS), the programmer must also create JCL
records that specify the compilation, link editing, or execution, as
appropriate. These records are created underCftS and named with a
distinctive filename and filetype (for example,PLICOMP JCL). Job
control records, source program files, and data files can then be merged
together in the virtual card reader toform a single OS job stream. The
CP andcommands (shown in Figure 3) create and transfer this job
stream.
The CPSPOOL com.and transfers subsequent (not currently existing) card images from the virtual card punch of one virtual machine to the virtual
card reader of thatsame or SOme other virtual machine. During this
time, no real cards are punched or read;V8/310 manages the transfer of card-image data files through disk spooling operations only.
Figure 3 shows how to punch files to the virtual machine's card
reader. The virtual machine is in theCMS environment at the start of
the example. Thecom.and "SPOOL OOc cont eof" specifies that reading be
continuous until all files spooled to the virtual machine are exhausted
and the virtual end-of-file button on the reader ispushed. NOBEAD!E specifies that no special control cards are to be inserted at the
teginning of each punched file.Virtual device 230 is an OS system voluae. Virtual device 231 contains the OS job queue, SYS1.SYSJOEQ!. All standard eMS and OS responses are omitted from the example; however,
theOS READY message is included to more fully illustrate the 1Ft sequence. Also, assuming that the user has a 2141, he must press the
attention key before entering eachOS command. The attention
interruptions are not shown in Figure 3.
24IBM VM/370 Operating Systems in a Virtual Machine
to create and
medify, and test programs, may require facilities for compilation or
execution that are not supported or available in
consecutively. Job control cards, compiler or assembler source
programs, and test data streams are created and modified at the terminal
under control of the
passing control to an appropriate operating system that has the
necessary facilities.
In this way, the
system. After execution is finished, he can give control back to
selectively scan and display printer and punch output at the terminal.
This
records that specify the compilation, link editing, or execution, as
appropriate. These records are created under
distinctive filename and filetype (for example,
control records, source program files, and data files can then be merged
together in the virtual card reader to
CP and
stream.
The CP
card reader of that
time, no real cards are punched or read;
Figure 3 shows how to punch files to the virtual machine's card
reader. The virtual machine is in the
the example. The
continuous until all files spooled to the virtual machine are exhausted
and the virtual end-of-file button on the reader is
teginning of each punched file.
the
attention key before entering each
interruptions are not shown in Figure 3.
24