Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

refer to a GDG without knowing the version number

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: refer to a GDG without knowing the version number
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: 436
Location: chennai, India

PostPosted: Wed May 11, 2005 10:49 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: refer to a GDG without knowing the version number
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    Post subject: Re: refer to a GDG without knowing the version number
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':
http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts what is meaning of the number in dcl Martylin PL/I & Assembler 2 Thu Mar 09, 2017 7:18 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 15 Tue Nov 01, 2016 11:24 am
No new posts Sequence number add in SORT pshongal SYNCSORT 3 Fri Sep 02, 2016 3:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us