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

refer to a GDG without knowing the version number


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
richa.setia

New User


Joined: 23 Mar 2005
Posts: 10
Location: Noida

PostPosted: Wed May 11, 2005 10:26 am
Reply with quote

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
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Wed May 11, 2005 10:49 am
Reply with quote

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
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Wed May 11, 2005 3:41 pm
Reply with quote

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
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Wed May 11, 2005 4:36 pm
Reply with quote

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
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Sat May 14, 2005 3:51 pm
Reply with quote

(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
View user's profile Send private message
grepusr3

New User


Joined: 10 May 2005
Posts: 29

PostPosted: Sun May 15, 2005 6:05 pm
Reply with quote

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
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top