I want to submit a JCL to get access on other user's datasets. for this i have used USER and PASS parameters of the other user's details in my jobcard. even then i'm getting not authorized messages.
find below the JCL that i'm submitting to get access on other user's dataset.
//MYJOB JOB ,,NOTIFY=&SYSUID,CLASS=D,MSGLEVEL=(1,1),MSGCLASS=X -
// USER=TARGET,PASS=ABCD
//DATSETPR EXEC PGM=IKJEFT01,DYNAMNBR=20,REGION=512K
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
ADDSD 'TARGET.DB2.PDS' UACC(READ)
PE 'TARGET.DB2.PDS' ID(MYJOB) ACCESS(READ)
//
// USER=TARGET,PASS=ABCD
//DATSETPR EXEC PGM=IKJEFT01,DYNAMNBR=20,REGION=512K
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
ADDSD 'TARGET.DB2.PDS' UACC(READ)
PE 'TARGET.DB2.PDS' ID(MYJOB) ACCESS(READ)
//
My final requirement is to get read access on TARGET.DB2.PDS
what can be the solution for this ?
the error i'm getting for this JCL is
READY
ADDSD 'TARGET.DB2.PDS' UACC(READ)
ICH09025I NOT AUTHORIZED TO RACF PROTECT E183904.DB2.DAY3.CICS.PDS
READY
PE 'TARGET.DB2.PDS' ID(MYJOB) ACCESS(READ)
ICH06004I TARGET.DB2.PDS NOT DEFINED TO RACF
READY
END
ADDSD 'TARGET.DB2.PDS' UACC(READ)
ICH09025I NOT AUTHORIZED TO RACF PROTECT E183904.DB2.DAY3.CICS.PDS
READY
PE 'TARGET.DB2.PDS' ID(MYJOB) ACCESS(READ)
ICH06004I TARGET.DB2.PDS NOT DEFINED TO RACF
READY
END