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

Copy from one GDG to anotehr GDG


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

New User


Joined: 20 Dec 2008
Posts: 43
Location: New Jersey

PostPosted: Thu Dec 25, 2008 2:01 am
Reply with quote

Hi all,

Can any one please tell me how to copy all the versions of one GDG to another GDG? icon_sad.gif
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 Dec 25, 2008 2:29 am
Reply with quote

One IEBGENER per version works pretty good; just run them one copy job at a time.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Dec 25, 2008 3:21 am
Reply with quote

raj, you're only allowed to have one version (V00-V99) per generation (G0001 - G9999). What do you mean by "all the versions"?
Back to top
View user's profile Send private message
raj12vel

New User


Joined: 20 Dec 2008
Posts: 43
Location: New Jersey

PostPosted: Fri Dec 26, 2008 7:36 pm
Reply with quote

Hi,

For example, if i have 20 versions (V01-V20) for one GDG and i want to copy all the 20 versions to an another GDG file which also have 20 empty genrations
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: Fri Dec 26, 2008 8:14 pm
Reply with quote

19 of the versions will not be GDG controlled -- they will simply be cataloged files you can copy with IEBGENER. The 20th version will be under GDG control but can still be copied via IEBGENER; you can run one job with 20 steps or 20 jobs to do the copy. If you use one job, the first generation to be output will be (+1), the second will be (+2), and so forth, in your JCL.
Back to top
View user's profile Send private message
raj12vel

New User


Joined: 20 Dec 2008
Posts: 43
Location: New Jersey

PostPosted: Fri Dec 26, 2008 8:23 pm
Reply with quote

Thanks alot...
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Dec 27, 2008 2:55 am
Reply with quote

Well, I have never seen in 30+ years of MFT / MVS / z/OS anything other that one Vnn of a GDS.

Or is this just another case of people thinking that they know what they are talking about but using the incorrect terminology - because a version and a generation are TOTALLY different elements of a GDS.
Back to top
View user's profile Send private message
raj12vel

New User


Joined: 20 Dec 2008
Posts: 43
Location: New Jersey

PostPosted: Sat Dec 27, 2008 3:00 am
Reply with quote

Hi,

I understood. I have misused the terminology. I could have said generations instead of versions.

Thank you.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Dec 27, 2008 3:08 am
Reply with quote

raj12vel wrote:
Hi,

I understood. I have misused the terminology. I could have said generations instead of versions.

Thank you.

I SHOULD have said generations instead of versions.

It is very important that the correct terminology is always used, especially in this case where both generation and version are correct terms in reference to a GDS.

Although you know what you mean we nessecarally may not, unless you use the correct terminology. I have seen threads on this board that took about 15-20 replies before the exact response was elicited.

This is not taking a point against you personally - but if everyone who reads this and takes notice then uses the correct terminology it will make getting correct answers so much easier.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Dec 29, 2008 12:54 pm
Reply with quote

Hi,

'am lilttle on wrong trcak here I believe... If this
Quote:
have 20 versions (V01-V20) for one GDG
is true, then I hope he has not
Quote:
misused the terminology
..Did I miss something..please assist.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 29, 2008 1:07 pm
Reply with quote

Hi Anuj,

Quote:
..Did I miss something..
I believe not - you are in sync.

Once again the use of version and the use of generation have been treated as being interchangable. I believe there is now understanding that they are not and it it critical to make sure we all use the same (correct) terminology.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Dec 29, 2008 2:54 pm
Reply with quote

Anuj,

just to clarify. Why not define a GDG base and try to create more than one version of the same generation.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Dec 29, 2008 3:52 pm
Reply with quote

Hi Expat,

I understoof your point I think - other GDGs (GDS) will simply be cataloged files actually & only most latest will be under GDG control, so this statement
Quote:
have 20 versions (V01-V20) for one GDG
is actually meaningless or described in a wrong way. Did I get some marks..Sir.. icon_smile.gif .. ?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Dec 29, 2008 4:09 pm
Reply with quote

Anuj D. wrote:
Did I get some marks..Sir.


No, you did not test it.

When a new VERSION of an existing generation is created, the older version is deleted rather than kept.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Dec 30, 2008 2:36 pm
Reply with quote

I did test it though before posting, but put my self in front in a wrong way..

When I locate G0001V10 first & then G0001V09, only G0001V09 was visible.
Code:
PU2317A.GDG.FOR.EXPAT           
PU2317A.GDG.FOR.EXPAT.G0001V09   


But what I quoted should be true for Non-sms ? Please assist.

PS. Ah just another bad day for me..
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Dec 30, 2008 3:05 pm
Reply with quote

I believe Robert can also be of some help here..any how he also put the same stuff as mine.

Robert Sample wrote:
19 of the versions will not be GDG controlled -- they will simply be cataloged files you can copy with IEBGENER. The 20th version will be under GDG control but can still be copied via IEBGENER;
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Dec 30, 2008 5:32 pm
Reply with quote

Quote:
I believe Robert can also be of some help here..any how he also put the same stuff as mine.

Maybe he cheated and copied your answers icon_lol.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Dec 30, 2008 6:00 pm
Reply with quote

Umm.. this type of topics never seems to have an end..because always (usually) there is one like me is around to make it lengthy..aarghh.. icon_cry.gif !
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue Dec 30, 2008 6:11 pm
Reply with quote

Yes, I had noticed icon_lol.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Dec 30, 2008 6:23 pm
Reply with quote

Could not stop to share the laugh.. icon_biggrin.gif ,

have a good one, later

-Ad
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: Tue Dec 30, 2008 9:58 pm
Reply with quote

Yeah, I'm psychic and copied Anuj's answer ... all the way around the world, even. icon_biggrin.gif
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Dec 31, 2008 1:07 am
Reply with quote

Quote:
I'm psychic and copied . . . all the way around the world, even.

Is there an extra charge for this or is it automagically covered icon_lol.gif
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: Wed Dec 31, 2008 3:43 am
Reply with quote

Let me check my wallet ... hmmm .... yep, extra charge is needed! (Hey, I'm going to Paris in February and gotta pay for everything somehow!)
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Dec 31, 2008 1:40 pm
Reply with quote

Robert Sample wrote:
..all the way around the world, even. icon_biggrin.gif
Perfect eye-sight 6 by 6.. icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Wed Dec 31, 2008 1:48 pm
Reply with quote

Robert Sample wrote:
Let me check my wallet ... hmmm .... yep, extra charge is needed! (Hey, I'm going to Paris in February and gotta pay for everything somehow!)

Oh boy, one of the most expensive european cities and you only get 0.7 euro per USD. I would put in a lot of overtime if I were you.

Or hope that Anuj finally settles his account icon_lol.gif
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top