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

can you provide jcl to find latest version of gdgs.


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

New User


Joined: 05 Jun 2008
Posts: 4
Location: bangalore

PostPosted: Fri Apr 24, 2009 12:48 pm
Reply with 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!
Back to top
View user's profile Send private message
Dhinest984

New User


Joined: 05 Jun 2008
Posts: 4
Location: bangalore

PostPosted: Fri Apr 24, 2009 12:50 pm
Reply with quote

Can you provide idea or job for finding latest verison of gdgs.for more than 110.
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Fri Apr 24, 2009 1:07 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 24, 2009 1:16 pm
Reply with quote

Do you mean 110 GDG base names, or 110 generations of one GDG base
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Apr 24, 2009 1:30 pm
Reply with quote

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

New User


Joined: 05 Jun 2008
Posts: 4
Location: bangalore

PostPosted: Fri Apr 24, 2009 1:59 pm
Reply with quote

I am having 100 gdg base.I need the latest version of all 100 gdgs.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Apr 24, 2009 2:02 pm
Reply with quote

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

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Apr 24, 2009 2:04 pm
Reply with quote

Check this previous link, have some good suggestions.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 24, 2009 2:25 pm
Reply with quote

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

New User


Joined: 05 Jun 2008
Posts: 4
Location: bangalore

PostPosted: Fri Apr 24, 2009 2:33 pm
Reply with quote

I need to get the list of latest generation of gdg.Then i have to generate the reports from that versions.
Back to top
View user's profile Send private message
himanshu7

Active User


Joined: 28 Aug 2007
Posts: 131
Location: At Desk

PostPosted: Fri Apr 24, 2009 2:47 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Apr 24, 2009 2:49 pm
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 24, 2009 3:15 pm
Reply with quote

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
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 To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top