Getting unauthorized access errors messages when copying members from one Librarian master file to another Librarian master file.
Background:
Need to copy over specific members to a new Librarain master file for a new user group.
Instructions:
Unless you specify the management code(MCD), no processing to a PROD2 member can take place. With the management code, there are no restrictions.
To get around this situation you will need to change the member status from PROD2 to TEST when the MCD code is on the current master file but not on the target master file.
Example JCL below:
//STEP1 EXEC PGM=AFOLIBR,PARM='NJTA,NRJS'
//MASTER DD DISP=SHR,DSN=YOUR.CURRENT.LIBRARIAN.MASTER
//SYSPRINT DD SYSOUT=*
//INDEX DD SYSOUT=*
//LIST DD SYSOUT=*
// SPACE=(CYL,(100,100)),DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000)
//SYSIN DD *
-OPT UTILITY
-MCD nnnn - <<<<<current master file management code >>>>>
-OPT
-COPY memname,STATUS=TEST,PWSD
-END
//STEP2 EXEC PGM=AFOLIBR,PARM='NJTA,NRJS'
//MASTER DD DISP=SHR,DSN=YOUR.TARGET.LIBRARIAN.MASTER
//SYSPRINT DD SYSOUT=*
//INDEX DD SYSOUT=*
//LIST DD SYSOUT=*
//SYSIN DD DSN=&&UTI,DISP=(OLD,PASS)
//OSJOB DD DUMMY