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!
PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
- sergeyken
- Posts: 458
- Joined: Wed Jul 24, 2019 10:12 pm
- Skillset: Assembler, JCL, Utilities, PL/I, C/C++, DB2, SQL, REXX, COBOL, etc. etc. etc.
- Referer: Internet search
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
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.
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
why would you want to password protect a dataset ???
RACF takes already care of all the protection you need
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
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
-
- Posts: 25
- Joined: Wed Aug 24, 2022 8:22 pm
- Skillset: half year on HERCULE - Z/OS
- Referer: searching for some mainframe forum
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
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ő
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ő
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
again ...
why would you want to password protect a dataset ???
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
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
-
- Posts: 25
- Joined: Wed Aug 24, 2022 8:22 pm
- Skillset: half year on HERCULE - Z/OS
- Referer: searching for some mainframe forum
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
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ő
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ő
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
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
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
-
- Posts: 25
- Joined: Wed Aug 24, 2022 8:22 pm
- Skillset: half year on HERCULE - Z/OS
- Referer: searching for some mainframe forum
Re: PROTECT parm of ALLOCATE cmd of AMS (IDCAMS) failed
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ő
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ő
-
- Similar Topics
- Replies
- Views
- Last post
-
- 12
- 7823
-
by Misha786
View the latest post
Mon Nov 30, 2020 9:32 pm
-
-
Pass PARM from JCL to Easytrieve SQL WHERE clause
by MemoPerez » Tue Oct 24, 2023 8:32 am » in CA-Easytrieve - 2
- 3103
-
by MemoPerez
View the latest post
Fri Oct 27, 2023 1:13 am
-
-
-
Execute PARM with more than 100 chars including variabl
by jcdm » Tue Mar 15, 2022 10:32 pm » in JCL - 9
- 3429
-
by Robert Sample
View the latest post
Tue Mar 29, 2022 7:00 pm
-