Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 0 Wed Nov 22, 2017 10:23 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us