How to setup the Driver Interface for Scheduler Job Management?
search cancel

How to setup the Driver Interface for Scheduler Job Management?

book

Article ID: 24369

calendar_today

Updated On:

Products

Scheduler Job Management

Issue/Introduction

Steps to set up the Driver Interface for Scheduler Job Management.

 

Environment

Release:  11.0
Component:  Scheduler Job Management

Resolution

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 Scheduler 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 Scheduler 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
050002 //STEP01 EXEC PGM=TESTJOB
050102 //SYSPRINT DD SYSOUT=*
051002 //SYSIN DD *
=NOTE= EXPANDING PROCEDURE TESTDRIV
060002 17068AND17069
=NOTE= END OF DRIVER EXPANSION
****** **************************** Bottom of Data ********

 



 

 



Additional Information

Scheduler Bookshelves

Scheduler Job Management Interface Reference Guide, Chapter 4. Driver Procedures, Variable Parameters, and Functions.