Using the Scheduler DRIVER Interface to change the server passwords for cross platform jobs
search cancel

Using the Scheduler DRIVER Interface to change the server passwords for cross platform jobs

book

Article ID: 63062

calendar_today

Updated On:

Products

Scheduler Job Management

Issue/Introduction

Scheduler cross platform jobs may have a requirement to change the server passwords frequently which will affect changes to the JCL or the job base record. These changes can be involved depending on the number of jobs submitted to that server. In addition, a verification process must be done to ensure accuracy that all jobs have been altered. Using the Driver functions to alter the password will require only one change per server rather than making changes to all the jobs submitted to that server. 

 

Resolution

Here are the steps to set up this Driver procedure:

  1. The CAS9 CAIJGEN initialization option must have 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 be allocated to the Driver procedures library allocated in step 2.

  4. Create a member PASWD01 in the Driver procedure library with the following contents.
    //PASWD01 DPROC MYPASS= 
    // DSET MYPASS=/PASSWORD='sched'/ &MYPASS
  5. Define a cross platform job in Scheduler as a LIBTYPE=PDS

  6. Set up the cross platform JCL in the JCLMASTR library
    NODE='nodename'
    USER='username'
    //STEP1 EXEC PASWD01
    COMMAND='C:\script.bat'
    Note: The Driver procedure library is searched first before the other proclibs.

  7. Test Driver JCL

    1. Issue the RUN JOB command with a Hold
    2. Restage the job
    3. In the stage JCL, enter the DEXPAND command which will display the resolved JCL
      ***** ***************************** Top of Data ********      
      010000 NODE='nodename'
      010101 USER='username'
      =NOTE= EXPANDING PROCUDURE PASWD01
      010201 PASSWORD='sched'
      =NOTE= END OF DRIVER EXPANSION
      020000 COMMAND='C:\ script.bat?
      ****** **************************** Bottom of Data *****

When the server password changes, the only required update is the password value to the Driver procedure.

Additional security can be placed to the Driver procedure library to ensure that the passwords have limited access.

Recommended reading for Driver functions is available in the CA Scheduler Job Management Interface Reference Guide, Chapter 4. Driver Procedures, Variable Parameters, and Functions.