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
 

 

GDG copying problem

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: GDG copying problem
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

Moderator Team Head


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

PostPosted: Wed Apr 01, 2009 12:44 am    Post subject: Reply to: GDG copying problem
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:

http://www.ibmmainframes.com/viewtopic.php?t=32464
http://www.ibmmainframes.com/viewtopic.php?t=15126
http://www.ibmmainframes.com/viewtopic.php?t=10395
http://www.ibmmainframes.com/viewtopic.php?t=20147
http://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: 8593
Location: Back in jolly old England

PostPosted: Wed Apr 01, 2009 11:42 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 02, 2009 12:12 pm    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Thu Apr 02, 2009 4:47 pm    Post subject:
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    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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm


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