|
|
| Author |
Message |
bharath18
New User
Joined: 12 Sep 2006 Posts: 12 Location: Chennai, Tamilnadu, India
|
|
|
|
There is an existing VSAM file, i need to copy it to other test VSAM.
Any help ? |
|
| Back to top |
|
 |
References
|
Posted: Thu Mar 13, 2008 11:21 am Post subject: Re: Copy VSAM to VSAM |
 |
|
|
 |
raak
Active User
Joined: 23 May 2006 Posts: 175 Location: chennai
|
|
|
|
I was just thinking whether REPRO can help u.......  |
|
| Back to top |
|
 |
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 298 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 |
|
 |
Moved: Thu Mar 13, 2008 1:55 pm by superk From JCL to SMS & VSAM |
chhabraravneet
New User
Joined: 04 Oct 2007 Posts: 11 Location: Chennai
|
|
|
|
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: 1483 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: 2953 Location: Brussels once more ...
|
|
|
|
Or IDCAMS EXPORT / IMPORT
That way there is no need to define the cluster first. |
|
| Back to top |
|
 |
|
|