CA Mainframe VM Product Manager - 1.2 : Scheduling Other VM Components With CA VM Schedule

 CA VM:Schedule can be used to decrease your prime-time workloads by having job requests run during off hours. You can use CA VM:Schedule to delay the running of your requests, such as VMRGRW reports, to a later time and without user interaction. However, your request may require the use of a tape. You can use CA VM:Tape within your CA VM:Schedule request to automate your tape needs.

This sample EXEC can be used to process tape-dependent requests:

/*****************************************************/
/*                                                    */
/* This EXEC issues the CA VM:Tape MOUNT              */
/* command with the WAIT option for                   */
/* CA VM:Schedule requests that require the           */
/* use of a tape.                                     */
/*                                                    */
/* Requires:  Access to the VMTAPE MODULE             */
/*                                                    */
/*****************************************************/
address 'COMMAND'
/* Replace 'volser' with actual tape volser           */
'VMTAPE MOUNT' volser '(WAIT' /* Request tape mount   */
If rc <> 0 Then Call error
/* Enter your tape processing commands here           */
'TAPE RUN'
'CP DET 181'
Exit rc 
error: 
'CP LOGOFF'
Exit rc

The CA VM:Tape MOUNT command instructs the operator to mount the specified tape (volser), which can be a specific tape volume or a SCRATCH tape. The WAIT option specifies that the tape must be mounted and attached before the command completes. If the tape is not mounted successfully, CA VM:Tape sends a message to the operator's console requesting operator intervention. If the mount request does not complete successfully, CA VM:Tape issues a nonzero return code and the EXEC branches to an error routine.

When the tape is mounted successfully, your EXEC can position the tape using the CMS TAPE command. For example, to begin at the third physical file, add this command to the EXEC:

TAPE FSF 2

Then insert the commands to perform any tape processing you require. After the commands perform your actual tape processing requests, the EXEC will rewind the tape (TAPE RUN), detach the tape drive (CP DET 181), and exit.

Icon
Note: For more information about the CA VM:Tape MOUNT command, refer to the CA VM:Tape Command Reference.