View previous topic :: View next topic
|
Author |
Message |
Hames
New User
Joined: 03 Oct 2005 Posts: 49
|
|
|
|
Hi friends,
I am writing some records in a VSAM KSDS file in a ambiguous order. For example for the Key value, I am writing 2, 4, 6, 10. Then if I write the 5 for the key will it be updated or will it abend? |
|
Back to top |
|
|
mak_tcs
New User
Joined: 23 Nov 2005 Posts: 69 Location: Minneapolis, MN USA
|
|
|
|
Hi Hames,
new record will be inserted into the existing file for key =5.
You will get an abend only if Key duplicates.
Hope I answered!!
Thanks,
Mani |
|
Back to top |
|
|
Hames
New User
Joined: 03 Oct 2005 Posts: 49
|
|
|
|
Hi Mani,
THanks a lot!
One more doubt, After insertion, will the records be automatically in the sorted order or do we need to sort it?? |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
Hi frnd,
In KSDS if u insert a record in the middle order ie., Rec 1,2,5,7 for example and if u insert 3,4,6 then it will get arranged in 1,2,3,4,5,6,7 ... so no need to sort.. it get's shifted automatically... |
|
Back to top |
|
|
|