View previous topic :: View next topic
|
Author |
Message |
pradeepsamson
New User
Joined: 08 Mar 2005 Posts: 5 Location: Pune
|
|
|
|
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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
... so, define a parameter in your PROC, and let them supply the value when their job calls it.
Or, am I missing something here? |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
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 |
|
|
rtalapaneni
New User
Joined: 20 Mar 2005 Posts: 13 Location: Bangalore
|
|
|
|
Hi ...
I think Sridevi is right ...
We can't change the limit of GDG by alter command |
|
Back to top |
|
|
ikumar
New User
Joined: 02 Aug 2005 Posts: 81
|
|
|
|
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 |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
I'm in accord with Priyesh and Ikumar, test it to believe. |
|
Back to top |
|
|
rtalapaneni
New User
Joined: 20 Mar 2005 Posts: 13 Location: Bangalore
|
|
|
|
Can we alter GDG limit ,if it contains records |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
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 |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Quote: |
Can we alter GDG limit ,if it contains records |
Did you try the code KUMAR pasted above.
Regards,
Priyesh. |
|
Back to top |
|
|
ikumar
New User
Joined: 02 Aug 2005 Posts: 81
|
|
|
|
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 |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Hi,
Kumar, I agree with you as you have tested the same. Thanks guys.
Regards,
Sridevi. |
|
Back to top |
|
|
abreddy
New User
Joined: 24 Sep 2006 Posts: 1
|
|
|
|
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 |
|
|
|