Page 1 of 1
PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
Posted: Wed Nov 27, 2024 9:53 pm
by futohomok
Helo every mainframe Gurus!
I like to create a dataset (PDS) with ALLOCATE command of AMS (IDCAMS). In the ALLOCATE cmd I used the PROTECT parametert. For this generated an error message: 'IGD17012I USER NOT AUTHORIZED TO DEFINE DATA SET'. If I did not use the PROTECT param, no error message was generated. Why? Please, send me any words about this probleme!
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
Posted: Wed Nov 27, 2024 10:20 pm
by sergeyken
Without FULL SOURCE CODE plus ALL ERROR MESSAGES presented here, under no circumstances you'll get any useful response.
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
Posted: Wed Nov 27, 2024 10:47 pm
by enrico-sorichetti
why would you want to password protect a dataset ???
RACF takes already care of all the protection you need
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
Posted: Thu Nov 28, 2024 8:17 pm
by futohomok
Helo every mainframe Gurus!
I apologize to everyone for the lack of information! The source code which generates the error message by on z/OS V1R8 system:
//STEP32 EXEC PGM=IDCAMS,DYNAMNBR=10
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALLOCATE DATASET('JES2.AMS.BORCI') MOD RECFM(V) LRECL(256) -
BLKSIZE(2560) DSORG(PS) TRACKS SPACE(250,5) -
UNIT(SYSDA) FILE(INLIN) PROTECT;
and the error message
ALLOCATE DATASET('JES2.AMS.BORCI') MOD RECFM(V) LRECL(256) -
BLKSIZE(2560) DSORG(PS) TRACKS SPACE(250,5) -
UNIT(SYSDA) FILE(INLIN) PROTECT;
IKJ56893I DATA SET JES2.AMS.BORCI NOT ALLOCATED+
IGD17012I USER NOT AUTHORIZED TO DEFINE DATA SET
JES2.AMS.BORCI
DADSM HISTORIC RETURN CODE IS 172 DADSM DIAGNOSTIC INFORMATION IS 040E0800
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
the main problem for me is that I do not know what 0800 in 040e0800 means
Plase send me any words from this problem!
Best regards
Győző
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
Posted: Thu Nov 28, 2024 11:41 pm
by enrico-sorichetti
again ...
why would you want to password protect a dataset ???
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
Posted: Mon Dec 02, 2024 1:49 pm
by futohomok
Dear Enrico
Why do you think I'm protecting dataset with a password? I don't want to protect any dataset. I just want to apply the 'PROTECT' keyword in 'ALLOCATE' statement.
Best regards
Győző
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
Posted: Mon Dec 02, 2024 3:37 pm
by enrico-sorichetti
I just want to apply the 'PROTECT' keyword in 'ALLOCATE' statement.
what does the manual say about it ?
My bad ( about the password thing ) ... I was quoting the wrong section of the manual
in a properly managed environment racf protection would never be invoked using explicit constructs
if the entity ( in this case a dataset ) profile has been properly defined, and the access permissions have been properly setup
everything will happen automatically
research about what happens what happens when using the PROTECT keyword and the RACF environment has not been properly setup
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
Posted: Mon Dec 02, 2024 4:33 pm
by futohomok
Dear Enrico
Very thanks for your rapid answere! I would also like to ask where or which manual is written about this matter?
Best regards
Győző