View previous topic :: View next topic
|
Author |
Message |
richa.setia
New User
Joined: 23 Mar 2005 Posts: 10 Location: Noida
|
|
|
|
Hi,
Please tell me if we can refer to a GDG without knowing its version number.
Lets say a GDG was created 2 months back and we want to use it now in a job. We dont know the version number.How do we do it?
Regards,
Richa |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
Thru Hierarchical Storage Manager,you can identify the version number of the GDG by listing the backups corresponding to their date.This storage type can hold more number of ds as backups. |
|
Back to top |
|
|
David P
Active User
Joined: 11 Apr 2005 Posts: 106 Location: Cincinnati Ohio
|
|
|
|
Hi Richa,
IF you do not know the version number its not a problem as long as you know which GDG version you want to access. Say if it is the last created version you can refer it with MYGDG.GDG(0) in new job or it is penultimate version you can refer with MYGDG.GDG(-1) and so on.
let me know if you have any concens.
David. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
to get the gdg version creted 2 months back i think, you need to check the job get executed in that time.As in most of the shop it is archived...so u can check the history details for that particular job then get the GDG creted at that time.
for that u can use $AVRS facility.
is this what u r asking abt..if not plz explain ur question
give $ in tso command prompt --> then choose the complex and get the job details
let us know if you have any other concerns.. |
|
Back to top |
|
|
brain_s390
New User
Joined: 06 May 2005 Posts: 58 Location: Mumbai
|
|
|
|
(q)Please tell me if we can refer to a GDG without knowing its version number.
Yes if want to know the version of the GDG then refer the sysmsg of the job.If the job was ran 2 months back then you need to retrieve the job details from the archive cos normally the production jobs are placed in the sytem like $AVRS or any other system where the jobs are placed and after few days they are archived on tape.
(q)Lets say a GDG was created 2 months back and we want to use it now in a job. We dont know the version number.How do we do it?
If you want to use the same version today then that depends on the GDG limit as once the limit is reached the first version gets scratched. |
|
Back to top |
|
|
grepusr3
New User
Joined: 10 May 2005 Posts: 29
|
|
|
|
Just some concise GDG information!
Assuming you have created a GDG dataset (it has a generation limit defined) for example:
DEFINE GDG ( NAME(MyID.gdgDaily.base) LIMIT(90) NOEMPTY SCRATCH )
and assuming you have a daily GDG creation frequency cycle, then on the 82nd day - you would have GDGs on the base name like below for instance. Hence you can refer to the GDG either through absolute name or through relative (GDG generation) number - just back track logically.
Absolute name_____________ --or-- Relative Generation Name
MyID.gdgDaily.base.G0001V00 --or-- ...
MyID.gdgDaily.base.G0002V00 --or-- ...
MyID.gdgDaily.base.G0003V00 --or-- ...
.....
MyID.gdgDaily.base.G0020V00 --or-- MyID.gdgDaily.base(-62)
MyID.gdgDaily.base.G0021V00 --or-- MyID.gdgDaily.base(-61)
MyID.gdgDaily.base.G0022V00 --or-- MyID.gdgDaily.base(-60) <-- 60 days ago (approx. 2 months)
MyID.gdgDaily.base.G0023V00 --or-- MyID.gdgDaily.base(-59)
.....
MyID.gdgDaily.base.G0080V00 --or-- MyID.gdgDaily.base(-2)
MyID.gdgDaily.base.G0081V00 --or-- MyID.gdgDaily.base(-1)
MyID.gdgDaily.base.G0082V00 --or-- MyID.gdgDaily.base(0) <--- today
Alternatively, if you do not have GDG creation JCL, you can determine the date by producing a comprehensive catalog listing using below command. In the LISTCAT listing you can check the desired creation date and determine (respective to the date) it's absolute GDG name.
LISTCAT LEVEL('MyID.gdgDaily.base') ALL
If you are quite ambitious, please try this 'A REXX program to list GDG information':
www.mainframeweek.com/code/showcode.php/0080/mw80mvs2.txt
-Pelad |
|
Back to top |
|
|
|