Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8619
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: 8619
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: 8200
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 ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm
No new posts Copying part of the report using SARBCH Aedulla CA Products 1 Tue Oct 24, 2017 9:24 am
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts String after '.' (period) is not copy... balaji81_k SYNCSORT 6 Wed Aug 23, 2017 9:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us