MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need to copy all GDG generations to another GDG ?
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
sankar narayanan
Beginner


Joined: 16 Oct 2007
Posts: 29
Topics: 12

PostPosted: Thu Jul 24, 2008 6:48 am    Post subject: Reply with quote

Its DASD only,If you have the code please share it Confused ....
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Jul 24, 2008 9:14 am    Post subject: Reply with quote

The link to the IBM DFSMSdss manual is here

CLICK HERE

Take a look at the COPY command and also the REPLACEUNCONDITIONAL AND RENAMEUNCONDITIONAL parameters.

I do not have an example in my JCL archive, but this should not take you more than half an hour to prepare and test.
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Thu Jul 24, 2008 9:43 am    Post subject: Reply with quote

Quote:
If you have the code please share it


You've got to be joking. 2 days to find an automated solution to an urgent task that should take no longer than 2 hours to complete manually?!?! I admire the patience of the folks that took time to post some really good ideas to help out. I must share an observation and a prediction. This guy doesn't want ideas; he wants someone to do the dirty work for him, and when he's forced to do it himself, he's going to hose it up and someone else will need to clean the mess.
Back to top
View user's profile Send private message
sankar narayanan
Beginner


Joined: 16 Oct 2007
Posts: 29
Topics: 12

PostPosted: Fri Jul 25, 2008 1:21 am    Post subject: Reply with quote

Hi instead typing such a big sentence u could have find the solution Razz

Anyway i completed this tasks Via Rexx code....Others Thanks for your Timely Help and suggestion.
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri Jul 25, 2008 1:33 am    Post subject: Reply with quote

And would you care to share your solution so that others who find themselves in the same situation may benefit from your experience ?
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Fri Jul 25, 2008 11:41 am    Post subject: Reply with quote

Quote:
Hi instead typing such a big sentence u could have find the solution


I did tell you the solution. For an urgent task, an experienced professional would have coded the solution manually in less than 2 hours rather than spending 2 days asking others for an automated solution. As a guideline, I exert the same effort in my responses that I perceive the op exerts trying to resolve the issue on their own. In your case, very little. I am happy to see that you did resolve this on your own, and reiterate expat's request that you post your solution for the benefit of others.
Back to top
View user's profile Send private message
Southington
Beginner


Joined: 02 Jun 2006
Posts: 6
Topics: 0
Location: Phoenix AZ

PostPosted: Wed Sep 10, 2008 4:13 pm    Post subject: Reply with quote

Wouldn't this work, even with tape:
Code:

//    exec pgm=iebgener
//sysut1  dd  dsn=usr.aaaa.test,disp=old    gets all GDG files
//sysut2  dd  dsn=new.bbbb.test(+1),
//  disp=(,catlg,delete), dcb=whatever,  etc.
//sysin      dd dummy
//sysprint  dd sysout=*
//sysout    dd sysout=*
//
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Wed Sep 10, 2008 4:20 pm    Post subject: Reply with quote

No, that would just copy all generations of the original GDG into a single generation of the new GDG, whereas the OP wants one generation of the new GDG for each generation of the original GDG.
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group