This QUERY co.mand lists the filenames and filetypes of all the jobs
in the batch virtual machine's job queue.You can then reorder them,
using theORDER command.
Using EXECFiles for Input to the Batch Facility There are a variety of ways that EXEC procedures can help facilitate the
submission of jobs to theCMS batch facility. You can prepare an EXEC file that contains all of the CMS commands you want to execute, and then
pass the name of theEXEC to the batch virtual machine. For example,
consider the filesCOpy JCL and COPYF EXEC: COpy JCL: /JOB CARBON 999999 EXEC COPYF /* COPYF EXEC: COPYFILE FIRST FILE A SECOND = = COPYFILE THIRD FILE A FOURTH = =
Then, if you enter the commands:
cp spool punch to cmsbatch
punch copy jcl * (noheader
the commands in theEXEC file are executed by the batch virtual machine. You could also use an EXEC to punch
machine.Using the same commands as in
have anEXEC named BATCOPY: CP SPOOL PUNCH TO BATCH3 &PUNCH /JOB CARBON 999999
input to the batch virtual
the example above, you might&PUNCH COPYFILE FIRST PILE A SECOND = = &PUNCH COPYFILE THIRD FILE A FOURTH = = &PUNCH 1* CP CLOSE PUNCH Then, when you enter the EXEC name:
batcopy
the input lines are punched to the batch virtual machine.
The examples above are very simple; you probably would not go to the
trouble of sending such a job to the batch virtual machine for
processing. The examples do, however, illustrate the twobasic ways that you can use EXEC procedures with the batch facility:
1. Invoking anEXEC procedure from a batch virtual machine
2.Using an EXEC procedure to create a job stream for the batch
virtual machine
In either case, theEXECs that you use may be very simple or very
complicated. In the first instance, anEXEC might contain many steps,
with control statements to conditionally control execution, errcr
routines, and so on.
In the second instance, you might have anEXEC that is versatile so
that it canbe invoked with different arguments so as to satisfy more
than one situation. For example, if you want to create a simpleEXEC to
234IBM VM/370 CMS User's Guide
in the batch virtual machine's job queue.
using the
Using EXEC
submission of jobs to the
pass the name of the
consider the files
Then, if you enter the commands:
cp spool punch to cmsbatch
punch copy jcl * (noheader
the commands in the
machine.
have an
input to the batch virtual
the example above, you might
batcopy
the input lines are punched to the batch virtual machine.
The examples above are very simple; you probably would not go to the
trouble of sending such a job to the batch virtual machine for
processing. The examples do, however, illustrate the two
1. Invoking an
2.
virtual machine
In either case, the
complicated. In the first instance, an
with control statements to conditionally control execution, errcr
routines, and so on.
In the second instance, you might have an
that it can
than one situation. For example, if you want to create a simple
234