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

GDG copying problem


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

New User


Joined: 22 Oct 2008
Posts: 2
Location: India

PostPosted: Wed Apr 01, 2009 12:22 am
Reply with quote

I need to copy all the generations of a GDG into separate PS files or other GDG separate generations, but the problem is that we do not know how many generations we have for the GDG before the run, so is it possible that we can have a incremental loop applied to GDG's and checking for file existence, if the generation is there it will copy it?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Apr 01, 2009 12:44 am
Reply with quote

You have to use the IDCAMS LISTCAT command to create a list of all generations that are part of the base. Then, you have to build the copy logic for each generation listed. You'll probably want to build the required JCL, and then submit it once you're done.

The process has been discussed before. There are topics in the DFSORT forum as well as the REXX forum. I'll post a few links in a minute ...

OK. Here's a few topics I found:

www.ibmmainframes.com/viewtopic.php?t=32464
www.ibmmainframes.com/viewtopic.php?t=15126
www.ibmmainframes.com/viewtopic.php?t=10395
www.ibmmainframes.com/viewtopic.php?t=20147
www.ibmmainframes.com/viewtopic.php?t=39260
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Apr 01, 2009 11:42 am
Reply with quote

And do not forget to read up on DFdss
Back to top
View user's profile Send private message
Kuldeep Jolly

New User


Joined: 22 Oct 2008
Posts: 2
Location: India

PostPosted: Thu Apr 02, 2009 11:58 am
Reply with quote

Hi ,

For this problem of copying all the versions of a GDG ( without knowing how many versions would be there before running the job) into separate PS file or another GDG separate versions, I used REXX to get a list of all the versions of GDG present but after that I am stucked how to use that list of versions and copy them to separate PS or another GDG separate versions. Could you please help me and send some sample code.

One more thing u have mentioned that we can easily handle this requirement thru DFDss but I am not aware of that could u plz explain it and send me some sample code for this requirement.

Thanks in advance!
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Apr 02, 2009 12:12 pm
Reply with quote

Well, if you have a list of generations (not versions) then invoke ICEGENER, IEBGENER, DFdss or whatever product you use for copying.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 02, 2009 4:47 pm
Reply with quote

Quote:
One more thing u have mentioned that we can easily handle this requirement thru DFDss but I am not aware of that
Go to IBM's web site and find the DFSMS bookshelf; the Storage Administration Reference manual talks about DF/DSS and the various commands and options it has with examples.
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top