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
 

 

gdg version moving..

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

New User


Joined: 03 Aug 2005
Posts: 9
Location: bangalore

PostPosted: Tue Sep 13, 2005 10:21 am    Post subject: gdg version moving..
Reply with quote

hi folks
I have gdg(1), gdg(2),
gdg(3), gdg(4).
I want to move gdg(1) into gdg(3) and
gdg(2) into gdg(4) and finally
I want to print all gdg's in an order...
How can we do it ..
your answers should be appreciated...!
Babu
Back to top
View user's profile Send private message

gowtham_srgp

New User


Joined: 09 Jun 2005
Posts: 38

PostPosted: Tue Sep 13, 2005 2:10 pm    Post subject: Re: gdg version moving..
Reply with quote

babun wrote:
hi folks
I have gdg(1), gdg(2),
gdg(3), gdg(4).
I want to move gdg(1) into gdg(3) and
gdg(2) into gdg(4) and finally
I want to print all gdg's in an order...
How can we do it ..
your answers should be appreciated...!
Babu




hai babu. since all the gdg's are sequential flat files, we can handle this task by COBOL logic. read the particular gdg, make the necessary changes and move them back to the target gdg.


corrections welcomed.

gowtham
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue Sep 13, 2005 2:32 pm    Post subject:
Reply with quote

I think that with an IDCAMS you can do it.

Code:
//STEP010I EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//GDG1    DD DISP=SHR,DSN=...gdg(1)
//GDG2    DD DISP=SHR,DSN=...gdg(2)
//GDG3    DD DISP=SHR,DSN=...gdg(3)
//GDG4    DD DISP=SHR,DSN=...gdg(4)
//GDG5    DD DISP=SHR,VOL=REF=*.GDG1,DSN=*.GDG1
//        DD DISP=SHR,VOL=REF=*.GDG2,DSN=*.GDG2
//        DD DISP=SHR,VOL=REF=*.GDG3,DSN=*.GDG3
//        DD DISP=SHR,VOL=REF=*.GDG4,DSN=*.GDG4
//SYSIN   DD *
 REPRO INFILE(GDG1) OUTFILE(GDG3)
 REPRO INFILE(GDG2) OUTFILE(GDG4)
 PRINT INFILE(GDG5)

This is only a sample that translate your literal request.

The disposition is SHR as sample but you can also use a catalog or other...

I hope in this suggest.
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 COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Moving a PD to PD spoorni DFSORT/ICETOOL 8 Fri Oct 07, 2016 9:52 pm
No new posts Is there a time Version of DATEDIFF ? Bill Woodger DFSORT/ICETOOL 1 Wed Aug 17, 2016 7:06 pm
No new posts Syncsort version supporting FINDREP c... juares castro SYNCSORT 9 Tue Aug 09, 2016 6:54 pm
No new posts Moving character data to smallint in db2 rikdeb DB2 5 Thu Jul 14, 2016 12:38 am


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