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
 
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 Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
No new posts Moving UDB database to Db2 on z/OS Keith Hooley DB2 4 Wed Sep 27, 2017 12:38 am
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts GDG version number PANDU1 JCL & VSAM 4 Sat Mar 04, 2017 8:28 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 15 Tue Nov 01, 2016 11:24 am

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