Joined: 14 Mar 2007 Posts: 8593 Location: Back in jolly old England
Not sure on how ICETOOL treats the VSAM file when it opens it, but DISP=MOD has no effect for VSAM files. Might be one for Frank / Kolusu to comment on.
A few options that spring to mind ............
1) Sort the new records into key sequence and then use REPRO to insert them to the VSAM file.
2) Insert the records using a program.
3) Use ICETOOL to sort the new records and the existing VSAM file to new VSAM file and then rename the original and new file.
Joined: 18 Jul 2007 Posts: 2150 Location: At my coffee table
i wanna put the records to the existing vsam file(not treate the fils as new)
For a sequential VSAM dataset, I think that is possible, but I can't see how Sort would be able to insert keyed records into an existing KSDS dataset since Sort does not know what the key is and I can find no Sort parameter to specify it.
When a VSAM cluster is defined with REUSE and is not empty, and you write to it in Batch with a REPRO with the REUSE parameter then VSAM does a RESET (resets the HI-USE-RBA to 0) which in effect empties the file and is like writing to a QSAM file with DISP=OLD, writing from the start of the file.