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
 

 

can you provide jcl to find latest version of gdgs.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: can you provide jcl to find latest version of gdgs.
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    Post subject:
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    Post subject: Reply to: can you provide jcl to find latest version of gdgs
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: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 24, 2009 1:16 pm    Post subject:
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    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Fri Apr 24, 2009 2:02 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Apr 24, 2009 2:04 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 24, 2009 2:25 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri Apr 24, 2009 2:49 pm    Post subject: Reply to: can you provide jcl to find latest version of gdgs
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: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 24, 2009 3:15 pm    Post subject:
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    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 find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts How to find the first monday of the w... abdulrafi COBOL Programming 10 Fri Nov 25, 2016 3:24 pm


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