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
 

 

Copy from one GDG to anotehr GDG
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy from one GDG to anotehr GDG
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: 7908
Location: Bellevue, IA

PostPosted: Thu Dec 25, 2008 2:29 am    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Dec 25, 2008 3:21 am    Post subject: Reply to: Copy from one GDG to anotehr GDG
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    Post subject:
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: 7908
Location: Bellevue, IA

PostPosted: Fri Dec 26, 2008 8:14 pm    Post subject:
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    Post subject: Thanks
Reply with quote

Thanks alot...
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: Sat Dec 27, 2008 2:55 am    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat Dec 27, 2008 3:08 am    Post subject:
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

Senior Member


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

PostPosted: Mon Dec 29, 2008 12:54 pm    Post subject:
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

Site Director


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

PostPosted: Mon Dec 29, 2008 1:07 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Dec 29, 2008 2:54 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Dec 29, 2008 3:52 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Dec 29, 2008 4:09 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Dec 30, 2008 2:36 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Dec 30, 2008 3:05 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Dec 30, 2008 5:32 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Dec 30, 2008 6:00 pm    Post subject:
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: 8593
Location: Back in jolly old England

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

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

Senior Member


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

PostPosted: Tue Dec 30, 2008 6:23 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 3 Fri Dec 02, 2016 9:47 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am
No new posts Using Field names in FILEAID Batch CO... Atul Banke Compuware & Other Tools 2 Wed Jun 29, 2016 9:54 pm


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