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 1, 2  Next
 
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: Tue Jul 22, 2008 7:19 am    Post subject: Need to copy all GDG generations to another GDG ? Reply with quote

Hi

Here goes my requirement.
I am having a GDG of 200 generations. I want to copy each generations into another GDG versions in a single JCL.Is it possible if so please help me on the way. Embarassed

Eg:Input Version
Code:
USR.AAAA.TEST.G0136V00
USR.AAAA.TEST.G0137V00
USR.AAAA.TEST.G0138V00
USR.AAAA.TEST.G0139V00


Output:Need all the above version to the other GDG Versions.
Back to top
View user's profile Send private message
expat
Intermediate


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

PostPosted: Tue Jul 22, 2008 8:21 am    Post subject: Reply with quote

Do you want to create 200 generations of a new GDG or do you want to create one generation of a new GDG
_________________
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
sankar narayanan
Beginner


Joined: 16 Oct 2007
Posts: 29
Topics: 12

PostPosted: Tue Jul 22, 2008 8:52 am    Post subject: Reply with quote

Yes...I want to create 200 generations of the new GDG
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Jul 22, 2008 9:16 am    Post subject: Reply with quote

rename them. I believe by virtue of the name, they will be a member of the new gdg base.

expat, am I in error here?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
sankar narayanan
Beginner


Joined: 16 Oct 2007
Posts: 29
Topics: 12

PostPosted: Tue Jul 22, 2008 9:23 am    Post subject: Reply with quote

i dont think its a appt solution....even if i am going to rename it the process will be too long for the 200 versions.
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Tue Jul 22, 2008 9:48 am    Post subject: Reply with quote

sankar narayanan wrote:
i dont think its a appt solution....even if i am going to rename it the process will be too long for the 200 versions.


Renaming would be lot quicker then copying!
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Tue Jul 22, 2008 2:03 pm    Post subject: Reply with quote

Of course if they're tapes, rename isn't possible.

Tasks such as this make my head hurt! bonk
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
sankar narayanan
Beginner


Joined: 16 Oct 2007
Posts: 29
Topics: 12

PostPosted: Tue Jul 22, 2008 11:57 pm    Post subject: Reply with quote

the above requirement is urgent. Please help me..... Sad
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jul 23, 2008 1:13 am    Post subject: Reply with quote

is it urgent because someone dropped the ball and did not plan for this eventuality?
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
expat
Intermediate


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

PostPosted: Wed Jul 23, 2008 1:20 am    Post subject: Reply with quote

If they are DASD, take a look at DFdss and the RENAME or RENAMEUNCONDITIONAL parameters.

As Bill said, if they are tape ........................ Tough luck
_________________
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
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Wed Jul 23, 2008 7:46 am    Post subject: Reply with quote

If this is a one time thing, start coding JCL for a job with 200 steps. SORT COPY or IEBGENER.

If this will happen regularly, search for REXX examples of generating JCL from a LISTCAT.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Wed Jul 23, 2008 11:51 am    Post subject: Reply with quote

If it is urgent you could have done it manually before getting your first response!
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
sankar narayanan
Beginner


Joined: 16 Oct 2007
Posts: 29
Topics: 12

PostPosted: Thu Jul 24, 2008 4:55 am    Post subject: Reply with quote

Ya...i have done it manually which is consumes more time.
I need this in a automated way. If you have any suggestion let me Nic Clouston. Evil or Very Mad
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Jul 24, 2008 5:17 am    Post subject: Reply with quote

If you would actually read the posts, you would have found your answer:
From Bill Dennis
Quote:
If this will happen regularly, search for REXX examples of generating JCL from a LISTCAT


which now means you will have to open a new thread in the rexx forum, since you do not want read anything - there are only about 30 threads about this - and you want everyone to provide you a solution.

Urgent...................oh, pity you!
_________________
Dick Brenholtz
American living in Varel, Germany
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 6:32 am    Post subject: Reply with quote

sankar narayanan wrote:
Ya...i have done it manually which is consumes more time.
I need this in a automated way. If you have any suggestion let me Nic Clouston. Evil or Very Mad

Perhaps if you would have answered some of the questions asked about your problem then more help would have been available.

So, I ask yet again, are these tape or DASD datasets ? Because, for a second time, if they are DASD then Dfdss will do exactly what it says on the tin, and perform the task in one simple step.

As for urgent, it may be for you but certainly not for me.
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 1, 2  Next
Page 1 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