Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Writing records in ambiguous order in VSAM KSDS file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Hames

New User


Joined: 03 Oct 2005
Posts: 49

PostPosted: Wed Dec 07, 2005 12:10 pm    Post subject: Writing records in ambiguous order in VSAM KSDS file
Reply with quote

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
View user's profile Send private message

mak_tcs

New User


Joined: 23 Nov 2005
Posts: 69
Location: Minneapolis, MN USA

PostPosted: Wed Dec 07, 2005 4:59 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Hames

New User


Joined: 03 Oct 2005
Posts: 49

PostPosted: Thu Dec 08, 2005 11:44 am    Post subject: Re: Writing records in ambiguous order in VSAM KSDS file
Reply with quote

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
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Thu Dec 08, 2005 12:41 pm    Post subject: KSDS
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us