Receiving error message when I run a job: "PDSM018-2 ACCESS BY SYS0001 NOT AUTHORIZED FOR MEMEBR ICKDSF OF SYS1.LINKLIB" . Why?
search cancel

Receiving error message when I run a job: "PDSM018-2 ACCESS BY SYS0001 NOT AUTHORIZED FOR MEMEBR ICKDSF OF SYS1.LINKLIB" . Why?

book

Article ID: 13770

calendar_today

Updated On:

Products

PDSMAN

Issue/Introduction



How do I resolve the "PDSM018-2 ACCESS BY username NOT AUTHORIZED FOR MEMEBER program name FOR dataset name" messages?

Environment

z/OS 2.1

Resolution

The error message "PDSM018-2 ACCESS BY username NOT AUTHORIZED FOR MEMEBER program name FOR dataset name" is caused by not having a $ACCESS rule specified in the PDSMINIT startup file. Or, the rule that is specified is not in the correct order. The PDSMINIT file is always processed sequentially and will make the first rule match the one that is processed.

Example:

$ACCESS LIB=-.-
MEM=ICKDSF
USER=DFHSM
MODE=A
REF=N
USERDATA=STANDARD

$ACCESS LIB=-.-
MEM=ICKDSF
MODE=PL
REF=N
USERDATA=STANDARD

$ACCESS LIB=SYS1.LINKLIB
MEM=ICKDSF
PGM=EXEC
USER=SYS0001
MODE=A
REF=N
USERDATA=STANDARD

 

Please note that the USER=SYS0001 entry (from the original question) is specified AFTER the MODE=PL entry. This would mean that the USER=SYS0001 rule will be ignored and not processed because the MODE=PL rule is before the USER=SYS0001 rule.

The correct order would be:

$ACCESS LIB=SYS1.LINKLIB
MEM=ICKDSF
PGM=EXEC
USER=SYS0001
MODE=A
REF=N
USERDATA=STANDARD
 
$ACCESS LIB=-.-
MEM=ICKDSF
MODE=PL
REF=N
USERDATA=STANDARD    

Additional Information

For additional and more detailed information regarding the $ACCESS rule please review the CA PDSMAN documentation that can be located on the Customer Support Database. You can utilize DOC OPS for this or use your manual. The CA PDSMAN PDS LIBRARY Management Administrator Guide