View previous topic :: View next topic
|
Author |
Message |
srrao_kilari
New User
Joined: 28 Nov 2005 Posts: 12 Location: New Delhi
|
|
|
|
Hi,
I want to create a GDG base if it is already not there. How to find out whether there is an existing GDG base through JCL before creation. |
|
Back to top |
|
|
SumanM
New User
Joined: 24 Sep 2006 Posts: 9 Location: CALCUTTA
|
|
|
|
HI,
I THINK U CAN DO IT USING IDCAMS SYNTAX , JUST LIKE DELETE - DEFINING A VSAM...U PLZ CHECK THE SYNTAX FOR GDGBASE
~SUMAN |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Here's an example, regards, UmeySan
//S1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=X
//SYSIN DD *
DEFINE GDG -
( -
NAME(IE31000.IEFUSI.MA00MP00) -
LIMIT(100) -
NOEMPTY -
OWNER(SYS1) -
SCRATCH -
) |
|
Back to top |
|
|
srrao_kilari
New User
Joined: 28 Nov 2005 Posts: 12 Location: New Delhi
|
|
|
|
I actual problem is if there is an existing GDG how to find out through JCL. In that case it should not try to create GDG. |
|
Back to top |
|
|
Redrose Currently Banned New User
Joined: 06 Mar 2006 Posts: 19
|
|
|
|
Dear Rao ,
My understanding from your query is "Do not create GDG base, if already exists",
If i am correct, then here is my answer.
When you use IDCAMS Utility to define an existing GDG base. It will throw the following error message with RC 12.
"IDC3013I DUPLICATE DATA SET NAME
IDC3009I ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLEH-38
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12"
I tries to create the GDG base, but ends with RC 12
Yours
Ramanan R
-------------------------------------------------------------------------------------
Winners Don't Do Different Things, They Do Things Differently
- Shiv Kehra
------------------------------------------------------------------------------------- |
|
Back to top |
|
|
Brian's_song
New User
Joined: 27 Dec 2005 Posts: 21
|
|
|
|
Hi All,
Can anyone of you tell me what is the meaning of the 'SCRATCH'.Thanks. |
|
Back to top |
|
|
murali922
New User
Joined: 25 Jul 2005 Posts: 92 Location: India
|
|
|
|
EMPTY - this uncataloges the oldest version of the GDG.
NO EMPTY - This uncataloges all the versions once the limit is reached...
SCRATCH decides whether the version of GDG should be physically deleted after getting uncataloged or not. |
|
Back to top |
|
|
me_abhishekkapoor
New User
Joined: 01 Sep 2006 Posts: 2
|
|
|
|
hi murali
EMPTY - it does uncatalogue all the generations and not only oldest.
the oldest one is uncatalogued by NOEMPTY.
correct me if i am wrong.
kudos!! |
|
Back to top |
|
|
|