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

how to copy the GDG version into a flat file:


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 463

PostPosted: Mon Sep 19, 2005 2:55 pm
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
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
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
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
Search our Forums:


Back to Top