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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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