IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to find the GDG base is already existing or not


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srrao_kilari

New User


Joined: 28 Nov 2005
Posts: 12
Location: New Delhi

PostPosted: Mon Sep 25, 2006 11:15 am
Reply with quote

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
View user's profile Send private message
SumanM

New User


Joined: 24 Sep 2006
Posts: 9
Location: CALCUTTA

PostPosted: Mon Sep 25, 2006 12:19 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Sep 25, 2006 5:57 pm
Reply with quote

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
View user's profile Send private message
srrao_kilari

New User


Joined: 28 Nov 2005
Posts: 12
Location: New Delhi

PostPosted: Mon Sep 25, 2006 6:01 pm
Reply with quote

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
View user's profile Send private message
Redrose
Currently Banned

New User


Joined: 06 Mar 2006
Posts: 19

PostPosted: Mon Sep 25, 2006 6:47 pm
Reply with quote

Dear Rao icon_smile.gif ,

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
View user's profile Send private message
Brian's_song

New User


Joined: 27 Dec 2005
Posts: 21

PostPosted: Mon Sep 25, 2006 8:00 pm
Reply with quote

Hi All,

Can anyone of you tell me what is the meaning of the 'SCRATCH'.Thanks.
Back to top
View user's profile Send private message
murali922

New User


Joined: 25 Jul 2005
Posts: 92
Location: India

PostPosted: Mon Sep 25, 2006 8:12 pm
Reply with quote

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
View user's profile Send private message
me_abhishekkapoor

New User


Joined: 01 Sep 2006
Posts: 2

PostPosted: Tue Sep 26, 2006 8:40 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts I want to append a record in an exist... CLIST & REXX 17
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
Search our Forums:

Back to Top