How can I specify different userids within my ESP Application for jobs that require different authorization?

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

Description

Job A - Protected RACF userid = SYSP
Job B - Protected RACF userid = SYSP
Job C - Protected RACF userid = SYST

Solution

There are a few options:

  1. Keep the jobs for a particular user in it's own separate Event owned by that user (or have the USER statement in the Event).

  2. Use a USER EXIT as described in the security manual. See EVENTSAF.

  3. Use "SECURE variable" and code the JCL with symbolics for the USER and PASSWORD as parameters in the job.

    //PRODJOB1 JOB 113100000,'xxxx',
    // MSGCLASS=C,CLASS=A,NOTIFY=CYBUSER,
    // USER=%JOBUSR,PASSWORD=%JOBPWD

In a secure symbolic library, code the following and use the SYMLIB operand in the event definition. See Reference Guide for details on the SYMLIB command.

JOBUSR='CYBUSER'
JOBPWD='SECRET'
SECURE JOBPWD