View previous topic :: View next topic
|
Author |
Message |
Adhiraj_Singh
New User
Joined: 27 Jun 2012 Posts: 3 Location: INDIA
|
|
|
|
Hi,
i wished to know if i could use SYMBOLIC parameter as LAST QUALIFIER of GDG base if yes could you please elaborate?
My requirement basically is:
I wish to create GDG base every quarter with value increasing by 1 every quarter, the best way i could think of, was to use a parameter that would increment the value by 1.
TESTOR00.TE.GR70 ---> GDG base 1st Quarter
TESTOR00.TE.GR71 ---> GDG base 2nd Quarter
and So on.....
Please help. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
Adhiraj_Singh
New User
Joined: 27 Jun 2012 Posts: 3 Location: INDIA
|
|
|
|
hi dbzTHEdinosauer
thanks for the suggestion,
but seriously am unable to do it even after going through loads of material ...
Please help |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
The link DBZ posted:
ibmmainframeforum.com/
is to our student/fresher forum. Given your limited knowledge/experience with JCL in general and GDG particularly, you will probably get replies you will find a bit eaiser to use. Yes, you do need to study the documentation as well, but you should be able to progess with both.
If i understand what you want to, you can probably use symbolic parameters. Keep in mind, that they will need to be managed. . . |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
Why on earth do you want a different GDG base name each quarter! The whole object of a GDG is that you can add a new unique GDS to it, up to whatever LIMIT (number of generations) is defined for it by specifying GDG.BASE.NAME.QTRLY(+1). So using the same GDG base name you can just create a new generation each quarter. |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
Pete,
Just a guess, but perhaps a new generation of the dataset is created daily.
You could not keep a years worth of data in a single gdg structure.
If you changed the base name quarterly, then this would work.
I found my crystal ball under my desk this morning. Really dusty though. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
Yes I thought of that, but as you say not enough background info to this.
It would be possible to have a DAILY GDG that is then copied enmasse to a QTRLY one and the DAILY cleared down each quarter. Bit of a pain though as most generations would probably be migrated and have to be recalled.
Depending on the amount of data involved it may be better to just write to a normal QSAM file with DISP=MOD for the entire quarter then copy that up to a quarterly GDG with the required number of generations, and redefine the MOD file for the start of the new quarter. |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
I use the technique you discribe often.
Create a weekly qsam file with disp=mod.
Copy it to a weelky backup gdg. Recreate file.
Roll up all weekly files to a yearly gdg file
I do not care about hsm recalls, it comes with the teritory. Plus we use Virtual Tape (no operator intervention).
As usual, the OP has the design in mind, and just wants help implementing.
The experts here could help with design, but why ask for that? |
|
Back to top |
|
|
Adhiraj_Singh
New User
Joined: 27 Jun 2012 Posts: 3 Location: INDIA
|
|
|
|
thanks for the suggestion. |
|
Back to top |
|
|
|