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
 
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: 8657
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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts VSAM BUFFER SPACE? John Poulakos CICS 17 Thu Mar 22, 2018 2:54 am

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