Joined: 14 Mar 2007 Posts: 8593 Location: Back in jolly old England
by overwrite I believe, you meant "append".
Anuj, You INSERT into a KSDS, you do not append, as the records are always stored in key sequence.
The solution also depends on what the OP means by "overwrite" - does he mean do not overwrite records in the file if they exist, or does he mean do not overwrite the whole file and only be left with the new inserts.
Unfortunately, with it not being psychic day today we can only guess at the requirement.