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 copy SEQ to PDS and create stats steve-myers JCL & VSAM 7 Thu Apr 27, 2017 1:15 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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