Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to find the GDG base is already existing or not

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to find the GDG base is already existing or not
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    Post subject:
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: 743
Location: Germany

PostPosted: Mon Sep 25, 2006 5:57 pm    Post subject:
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    Post subject: Re: GDG creration
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm
No new posts Find out a active PGM jpsager JCL & VSAM 10 Fri Oct 07, 2016 4:32 pm
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us