CA Jobtrac Job Management's Rexx Sample Library
search cancel

CA Jobtrac Job Management's Rexx Sample Library

book

Article ID: 56189

calendar_today

Updated On:

Products

Jobtrac

Issue/Introduction

Looking for a way to delete all jobs in a business group, or need to know how many tape drives are available before releasing a job to run? Well, your answers may be in  CA Jobtrac Job Management's SAMPREXX library. Here are few of the sample Rexx IMODs (Intelligent Modules) you may want to take a look at.

 

Environment

Release:
Component: JOBTRC

Resolution

The SYSVTAPE IMOD issues a command to  CA SYSVIEW Realtime Performance Management to check that a requested number of tape drives are available and indicates their availability by return code. This IMOD can be used as an Environmental Dependency to prevent submission of a job until the required drives are available. By adding a 'ED=SYSVTAPE/1439/0001/6' referback to an event's SCL definition, the IMOD will be called with a parameter of 6 which is used as the minimum number of tape drives that must be available to return a zero return code. A non-zero return code prevents the jobs from being submitted and the IMOD is retried at the specified interval (0001) until the max retries (1439) is reached.

DELEVENT allows you to delete all the jobs on CA Jobtrac's Checkpoint that meet specific criteria specified using the @JOBTRAC selection keywords. This IMOD can be run as a JOBTRAC event to delete all events that have the same business group (BUSGRP) or other common traits.

The CA Jobtrac ISPF command RUN DELEVENT,E,A='BUSGRP(PAYROLL)' , will delete all events in the checkpoint that have PAYROLL as a BUSGRP.

Other samples display late jobs to the console, produce a batch report of a job successor chain, or checks for the existence of a dataset. These samples can be used as a starting point in developing you own programs, but you should take care to leave the originals intact.

The Sample IMODS are shipped on the CA Jobtrac product tape, file 11, and are optional to install. The REXXCOPY member of SAMPJCL can be used to download and install these modules into the CA GSS SAMPREXX ISET dataset. CA Jobtrac Job Management's ISERVE, or CA GSS's SRVEDIT command can be used to browse these IMODs once installed. The $$INDEX member briefly describes each of the IMODs contained in the ISET. Refer to "Step 4: REXX IMOD Sample Source (Optional)" in the "Customization Tasks" chapter of the CA Jobtrac Getting Started Guide for installation details.