How to setup the Driver Interface for CA Scheduler Job Management?

Document ID : KB000024369
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

How do I setup the Driver Interface for CA Scheduler Job Management?

Answer:

Driver is normally used to automate the process of updating date control cards and parameters. The steps to set up the Driver Interface and an example of its use are as follows:

  1. The CAS9 CAIJGEN initialization option must be set to DRIVER=YES.

  2. Allocate a partitioned dataset with LRECL=80 to store the Driver procedures.

  3. Add a CARPROC DD statement to the CA Scheduler JM started task JCL and to your TSO logon proc or CLIST. The CARPROC DD must point to the Driver procedures library allocated in step 2.

  4. Create a member TESTDRIV in the Driver procedure library with the following contents.

    //TESTDRIV DPROC AA=,BB=
    // DSET AA=DTSUB(1,&C_JDATE)
    // DSET BB=&C_JDATE
    &AA.AND&BB

    Note:
    &C_JDATE is a reserved driver variable for the current system date in Julian (yyddd) format.
    DTSUB(1,&C_JDATE) is an Arithmetic Date Function where 1 day is subtracted from the current Julian Date.

  5. Define a job JOBXX in CA Scheduler JM with LIBTYPE=PDS

  6. Set up JOBXX JCL in the JCLMASTR library

    //JOBXX (40100000),'>>Test Driver<<',CLASS=K,MSGCLASS=X
    //STEP01 EXEC PGM=TESTJOB
    //SYSPRINT DD SYSOUT=*
    //SYSIN DD *
    //DRIVER EXEC TESTDRIV

    Note: The Driver procedure library is searched first before the other proclibs.

    To test the Driver JCL for resolution:

    Issue the RUN JOB command with a Hold
    Restage the job
    In the stage JCL, enter the DEXPAND command which will display the resolved JCL.

    ****** ***************************** Top of Data **********
    010000 //TESTDRIV JOB (40100000),'TEST',CLASS=K,MSGCLASS=X,
    020000 // NOTIFY=STRGR01
    050002 //STEP01 EXEC PGM=TESTJOB
    050102 //SYSPRINT DD SYSOUT=*
    051002 //SYSIN DD *
    =NOTE= EXPANDING PROCUDURE TESTDRIV
    060002 17068AND17069
    =NOTE= END OF DRIVER EXPANSION
    ****** **************************** Bottom of Data ********

 

Additional Information: 

CA Scheduler Job Management Interfaces Guide, Chapter 4. Driver Procedures, Variable Parameters, and Functions.

 

As always, please contact CA Technologies support for CA Scheduler Job Management if you have further questions.