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
 

 

Copy VSAM to VSAM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Copy VSAM to VSAM
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    Post subject:
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: 276
Location: Bang,iflex

PostPosted: Thu Mar 13, 2008 12:14 pm    Post subject:
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    Post subject: Reply to: Copy VSAM to VSAM
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: 1439
Location: Bangalore,India

PostPosted: Thu Mar 13, 2008 4:17 pm    Post subject:
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    Post subject: Re: Reply to: Copy VSAM to VSAM
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: 8593
Location: Back in jolly old England

PostPosted: Tue May 20, 2008 3:29 pm    Post subject:
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    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 Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


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