View previous topic :: View next topic
|
Author |
Message |
Dhinest984
New User
Joined: 05 Jun 2008 Posts: 4 Location: bangalore
|
|
|
|
Hi! This is your First post in our Forums! So please be sure to 1) Use meaningful and descriptive Topic Title 2) Try to post your query in the relevant forum category 3) Make sure your query is not already posted and solved in our forums, Use the Search facility and avoid Reposts! If you are following the above rules, delete this message and post your query here! |
|
Back to top |
|
|
Dhinest984
New User
Joined: 05 Jun 2008 Posts: 4 Location: bangalore
|
|
|
|
Can you provide idea or job for finding latest verison of gdgs.for more than 110. |
|
Back to top |
|
|
anandinmainframe
Active User
Joined: 31 May 2007 Posts: 171 Location: India
|
|
|
|
Dhinesh,
In 3.4 if you type your GDG Name like this
XXXXXX.XXXXXX.XXX.DATA(0)
you will get what you want. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Do you mean 110 GDG base names, or 110 generations of one GDG base |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
Hi! This is your First post in our Forums! So please be sure to 1) Use meaningful and descriptive Topic Title 2) Try to post your query in the relevant forum category 3) Make sure your query is not already posted and solved in our forums, Use the Search facility and avoid Reposts! If you are following the above rules, delete this message and post your query here!
|
You should have better used "EDIT" by seeing your post how it is looking?
Its nice facility lets make use of it...
coming back to your question,
You need to clarify your question more.
do you want latest generation of one gdg or latest generations of all gdgs with some pattern or something else? |
|
Back to top |
|
|
Dhinest984
New User
Joined: 05 Jun 2008 Posts: 4 Location: bangalore
|
|
|
|
I am having 100 gdg base.I need the latest version of all 100 gdgs. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Probably I understood what is being asked - Write LISTCAT to a (temp) file, then pull out the lines you want (via a program or SORT or whatever) and write them to a file . . . |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Dhinest984 wrote: |
I am having 100 gdg base.I need the latest version of all 100 gdgs. |
I am sure that you need the latest generation rather than version.
If these are being accessed in batch, by default using GDG.base.name(0) will always access the latest version.
Please explain why you need the absolute generation number and maybe it may make helping you a little easier. |
|
Back to top |
|
|
Dhinest984
New User
Joined: 05 Jun 2008 Posts: 4 Location: bangalore
|
|
|
|
I need to get the list of latest generation of gdg.Then i have to generate the reports from that versions. |
|
Back to top |
|
|
himanshu7
Active User
Joined: 28 Aug 2007 Posts: 131 Location: At Desk
|
|
|
|
Hi Dinesh,
Get the list of GDG base and then try this job.
Code: |
//STEP10 EXEC PGM=IDCAMS
//DD1 DD DSN=GDGBASE(0),
// DISP=SHR
//DD2 DD DSN=GDGBASE(0),DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
PRINT INFILE(DD1) COUNT(0) CHAR
PRINT INFILE(DD2) COUNT(0) CHAR
/* |
This job will call all the migrated current generation to your DASD.
Hope this is helpful.... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Quote: |
This job will call all the migrated current generation to your DASD. |
doesn' t look like what the TS was requesting |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Dhinest984 wrote: |
I need to get the list of latest generation of gdg.Then i have to generate the reports from that versions. |
Do you mean that you need the latest generation and use it as input to a job, or that you need to create a report showing the latest generation. |
|
Back to top |
|
|
|