PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed

Postby futohomok » Wed Nov 27, 2024 9:53 pm

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!
futohomok
 
Posts: 25
Joined: Wed Aug 24, 2022 8:22 pm
Has thanked: 9 times
Been thanked: 0 time

Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed

Postby sergeyken » Wed Nov 27, 2024 10:20 pm

Without FULL SOURCE CODE plus ALL ERROR MESSAGES presented here, under no circumstances you'll get any useful response.
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 437
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 7 times
Been thanked: 40 times

Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed

Postby enrico-sorichetti » Wed Nov 27, 2024 10:47 pm

why would you want to password protect a dataset ???
RACF takes already care of all the protection you need
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed

Postby futohomok » Thu Nov 28, 2024 8:17 pm

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ő
futohomok
 
Posts: 25
Joined: Wed Aug 24, 2022 8:22 pm
Has thanked: 9 times
Been thanked: 0 time

Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed

Postby enrico-sorichetti » Thu Nov 28, 2024 11:41 pm

again ...
why would you want to password protect a dataset ???
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed

Postby futohomok » Mon Dec 02, 2024 1:49 pm

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ő
futohomok
 
Posts: 25
Joined: Wed Aug 24, 2022 8:22 pm
Has thanked: 9 times
Been thanked: 0 time

Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed

Postby enrico-sorichetti » Mon Dec 02, 2024 3:37 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

These users thanked the author enrico-sorichetti for the post:
futohomok (Mon Dec 02, 2024 4:27 pm)
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed

Postby futohomok » Mon Dec 02, 2024 4:33 pm

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ő
futohomok
 
Posts: 25
Joined: Wed Aug 24, 2022 8:22 pm
Has thanked: 9 times
Been thanked: 0 time


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post