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

How to copy VSAM file between different environments.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rainbow_enn

New User


Joined: 17 Sep 2007
Posts: 2
Location: china

PostPosted: Mon Sep 17, 2007 5:24 pm
Reply with quote

I need to copy one VSAM file between different MF enviroments. There is shared DASD between these two enviroment, and I can't use xmit.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 17, 2007 6:28 pm
Reply with quote

Hello,

On the original system:
Get the original DEFINE control statements and place them in a member on shared dasd. REPRO the data into a qsam file that is on shared dasd.

On the "new" system:
DEFINE the vsam file and all indexes. Load the data using IDCAMS or sort.

You have migrated the file to the new sysytem.
Back to top
View user's profile Send private message
rainbow_enn

New User


Joined: 17 Sep 2007
Posts: 2
Location: china

PostPosted: Mon Sep 17, 2007 6:39 pm
Reply with quote

thanks a lot. Do you have the example for "copy vsam to qsam" and "load the qsam to vsam" ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Sep 17, 2007 9:53 pm
Reply with quote

You can use IDCAMS EXPORT/IMPORT or IDCAMS REPRO to a flat file and then repro it into the new file, DFdss will work too, and so will FAVER (GVEXPORT / GVIMPORT) if you have it installed on your system.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 5
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top