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

Copy VSAM to VSAM


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

New User


Joined: 12 Sep 2006
Posts: 15
Location: Chennai, Tamilnadu, India

PostPosted: Thu Mar 13, 2008 11:21 am
Reply with quote

There is an existing VSAM file, i need to copy it to other test VSAM.

Any help ?
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Thu Mar 13, 2008 11:37 am
Reply with quote

I was just thinking whether REPRO can help u....... icon_biggrin.gif
Back to top
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Thu Mar 13, 2008 12:14 pm
Reply with quote

Hi.....

Yes you can REPRO command of IDCAMS.

Code:
//SYSIN DD *
       REPRO-
       INDATASET    = OLD.VSAM.DATASET-
       OUTDATASET  = NEW.VSAM.DATAST
/*
Back to top
View user's profile Send private message
chhabraravneet

New User


Joined: 04 Oct 2007
Posts: 49
Location: Mumbai

PostPosted: Thu Mar 13, 2008 4:14 pm
Reply with quote

Through File_aid option in the mainframe(FA -> 1 -> 3.3 ) you can directly copy one VSAM cluster in another.

Or if its not possible ......

You can use the JCL with REPRO command.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Mar 13, 2008 4:17 pm
Reply with quote

Ravneet,

Quote:
Through File_aid option in the mainframe(FA -> 1 -> 3.3 )

Remember the FA sequence you mentioned differ from shop to shop depending on customization.
Back to top
View user's profile Send private message
bakshi_man

New User


Joined: 06 Jun 2007
Posts: 3
Location: mumbai

PostPosted: Tue May 20, 2008 3:03 pm
Reply with quote

chhabraravneet wrote:
Through File_aid option in the mainframe(FA -> 1 -> 3.3 ) you can directly copy one VSAM cluster in another.

Or if its not possible ......

You can use the JCL with REPRO command.




HI THERE

I'VE TRIED FILE-AID OPTION 3.3, THIS WORKS WELL AT MY SHOP.

Regards
bakshi
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Tue May 20, 2008 3:29 pm
Reply with quote

Or IDCAMS EXPORT / IMPORT

That way there is no need to define the cluster first.
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 Access to non cataloged VSAM file JCL & VSAM 18
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top