View previous topic :: View next topic
|
Author |
Message |
bharath18
New User
Joined: 12 Sep 2006 Posts: 15 Location: Chennai, Tamilnadu, India
|
|
|
|
There is an existing VSAM file, i need to copy it to other test VSAM.
Any help ? |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
I was just thinking whether REPRO can help u....... |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi.....
Yes you can REPRO command of IDCAMS.
Code: |
//SYSIN DD *
REPRO-
INDATASET = OLD.VSAM.DATASET-
OUTDATASET = NEW.VSAM.DATAST
/* |
|
|
Back to top |
|
|
chhabraravneet
New User
Joined: 04 Oct 2007 Posts: 49 Location: Mumbai
|
|
|
|
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 |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
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 |
|
|
bakshi_man
New User
Joined: 06 Jun 2007 Posts: 3 Location: mumbai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or IDCAMS EXPORT / IMPORT
That way there is no need to define the cluster first. |
|
Back to top |
|
|
|