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 identify the no of GDG generation as a parameter

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pradeepsamson

New User


Joined: 08 Mar 2005
Posts: 5
Location: Pune

PostPosted: Fri Oct 21, 2005 5:10 pm    Post subject: How to identify the no of GDG generation as a parameter
Reply with quote

Hi,
In my GDG number of generation kept is decided by the application team, therefore,my JCL should have an ability to let application team specifies the number of generation as a parameter. How can i achieve this.An early reply is highly appreciated

Cheers,
Pradeep Samson.
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Fri Oct 21, 2005 6:08 pm    Post subject: Re: Nnumber of generation as a parameter (GDG)
Reply with quote

Pradeep, If you are talking about changing you GDG's generation limit.

You can use IDCAMS with ALTER Command for the same.

Regards,

Priyesh.
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Fri Oct 21, 2005 6:18 pm    Post subject: Re: Nnumber of generation as a parameter (GDG)
Reply with quote

... so, define a parameter in your PROC, and let them supply the value when their job calls it.

Or, am I missing something here? icon_confused.gif
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Fri Oct 21, 2005 7:55 pm    Post subject:
Reply with quote

Hi Priyesh,
I don't think,ALTER command in IDCAMS could be used to modify generation limit.It could be used for EMPTY/NO EMPTY & SCRATCH/NO SCRATCH but NOT to modify generation limit.ALTER has some limitations.
Regards,
Sridevi.
Back to top
View user's profile Send private message
rtalapaneni

New User


Joined: 20 Mar 2005
Posts: 13
Location: Bangalore

PostPosted: Sat Oct 22, 2005 9:36 am    Post subject: Re: Nnumber of generation as a parameter (GDG)
Reply with quote

Hi ...
I think Sridevi is right ...
We can't change the limit of GDG by alter command
Back to top
View user's profile Send private message
ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Sat Oct 22, 2005 12:17 pm    Post subject: Re: Nnumber of generation as a parameter (GDG)
Reply with quote

Hi,

It is possible to alter the limit of a GDG using IDCAMS with ALTER command...check the example given below:

letz assume previously the limit was 5 and now if you want to change it to 10, then use

//STEP1 EXEC PGM=IDCAMS
//SYSIN DD *
ALTER MY.GDG.BASE LIMIT(10)
/*

(OR)

u can also change the limit by going to ISPF 3.4 option, give your GDG base name, after doing ENTER, i think you can type "ALTER LIMIT /" at the GDG dataset...then it prompts for "Enter the Limit"....and enter it as "10"....i dont remember this exactly...i have done like this long back...just try this one also...

Please let me know if you guys have any doubt....

Cheers,
Kumar
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Sat Oct 22, 2005 1:43 pm    Post subject:
Reply with quote

I'm in accord with Priyesh and Ikumar, test it to believe.
Back to top
View user's profile Send private message
rtalapaneni

New User


Joined: 20 Mar 2005
Posts: 13
Location: Bangalore

PostPosted: Sat Oct 22, 2005 5:23 pm    Post subject: Re: How to identify the no of GDG generation as a parameter
Reply with quote

Can we alter GDG limit ,if it contains records
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Sat Oct 22, 2005 7:23 pm    Post subject:
Reply with quote

Hi,
I agree with rtalapaneni. Once GDG has records,its limit can't be changed.Just like,the fact that when records are loaded the length of record and key length can't be changed by ALTER command.
Regards,
Sridevi.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Mon Oct 24, 2005 10:12 am    Post subject: Re: How to identify the no of GDG generation as a parameter
Reply with quote

Quote:
Can we alter GDG limit ,if it contains records


Did you try the code KUMAR pasted above.

Regards,

Priyesh.
Back to top
View user's profile Send private message
ikumar

New User


Joined: 02 Aug 2005
Posts: 81

PostPosted: Mon Oct 24, 2005 11:00 am    Post subject: Re: How to identify the no of GDG generation as a parameter
Reply with quote

Hi,

You can alter the limit parameter of the GDG base, when it contains the generations already loaded with the records. I remember, I had done like this before.

Thanks,
Kumar.
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Mon Oct 24, 2005 7:32 pm    Post subject:
Reply with quote

Hi,
Kumar, I agree with you as you have tested the same. Thanks guys.
Regards,
Sridevi.
Back to top
View user's profile Send private message
abreddy

New User


Joined: 24 Sep 2006
Posts: 1

PostPosted: Sun Sep 24, 2006 11:22 pm    Post subject: Re: How to identify the no of GDG generation as a parameter
Reply with quote

Hi Guyz,
I am first time user to this site and wanted to reply on this query which you were talking about.

you can alter the gdg base which contain already some generations. alter command of the idcams won't work, we tried couple of times. we have a alternate way to do this:

#) Go to =6 on ISPF and try Alter "GDGName new limit(n)" -- Where 'n' is the new limit of your gdg.

I hope it solve your problem.

-- Brahma.
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 SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


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