View previous topic :: View next topic
|
Author |
Message |
ganesh_bv
New User
Joined: 01 Nov 2008 Posts: 9 Location: chennai
|
|
|
|
i want to replace file 1 with file 2 using idcams
file 1 (flat file)
aaa
bbb
file 2 (vsam file)
ccc
ddd
output in file 2 should be
aaa
bbb
how to achieve this using single repro command
when i use repro command , file1 content merged with file2, as
aaa
bbb
ccc
ddd
but i want only file 1 content in file 2
file1 is flat file
file2 is vsam file
can we achieve in single repro command without deleting file2 and allocating file2 and copying with file1 |
|
Back to top |
|
|
ganesh_bv
New User
Joined: 01 Nov 2008 Posts: 9 Location: chennai
|
|
|
|
got the answer
REPRO INFILE(INFILE) OUTFILE(OUTFILE) REUSE
so OUTFILE will be replaced with INFILE
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
only if the cluster has been defined with the reuse option,
very dangerous if not properly planned
delete/define/repro is the proper general approach |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
If this is for learning & you are working on "Test Data" ..fine; else please read the post from Enrico again. |
|
Back to top |
|
|
|