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
 

 

how to copy the GDG version into a flat file:

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pkmainframe

New User


Joined: 14 Jun 2005
Posts: 16
Location: India

PostPosted: Mon Sep 19, 2005 2:34 pm    Post subject: how to copy the GDG version into a flat file:
Reply with quote

hi Please let me know how to copy GDG into a flat file with the output should have lower version to higher version
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Mon Sep 19, 2005 2:55 pm    Post subject: Re: how to copy the GDG version into a flat file:
Reply with quote

HI,

Try following code.

Code:
//STP0010  EXEC AIDCAMS                                             
//INPUT1   DD DSN=GDG1,DISP=SHR         
//         DD DSN=GDG2,DISP=SHR         
//         DD DSN=GDG3,DISP=SHR         
//OUTPUT1  DD DSN=Output file,                       
//            DISP=(NEW,CATLG,DELETE),                             
//            DCB=(RECFM=FB,LRECL=300),                             
//            UNIT=TEMP,SPACE=(CYL,(1,1),RLSE)                     
//SYSIN    DD *                                                     
 REPRO IFILE(INPUT1) OFILE(OUTPUT1)   
/*


Hope this hepl you.


Regards

Rupesh
Back to top
View user's profile Send private message
sendil

New User


Joined: 30 Jun 2005
Posts: 27

PostPosted: Mon Sep 19, 2005 4:12 pm    Post subject:
Reply with quote

by using sor fields= copy command, you can copied the gdg version to some other flat file. Before going to sort, the input gdg versions are concatenated.
If i am wrong please correct me
Thanks
Sendil
Back to top
View user's profile Send private message
Virgon
Warnings : 1

New User


Joined: 17 Jun 2005
Posts: 14
Location: Chennai

PostPosted: Mon Sep 19, 2005 4:30 pm    Post subject: Re: how to copy the GDG version into a flat file:
Reply with quote

Hi,

What will happen if I give the base GDG name alone and trying copying it by IEBGENER ?

Regards,
Naren
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Mon Sep 19, 2005 5:48 pm    Post subject: Re: how to copy the GDG version into a flat file:
Reply with quote

Virgon wrote:
Hi,

What will happen if I give the base GDG name alone and trying copying it by IEBGENER ?

Regards,
Naren


You will copy all of the generations that are associated with the base, in LIFO order (i.e. generation 0 first, then -1, then -2, and so on).
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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