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

How to identify the no of GDG generation as a parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1448
Location: Chicago, IL

PostPosted: Fri Oct 21, 2005 6:08 pm
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
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
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
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
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
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
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
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: 1448
Location: Chicago, IL

PostPosted: Mon Oct 24, 2005 10:12 am
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to identify the transaction categ... IMS DB/DC 3
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Identify Program Insert DB2 7
No new posts Started task using a generation dataset JCL & VSAM 7
Search our Forums:

Back to Top