IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to write a low-value record in KSDS using COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Feb 10, 2009 8:10 pm
Reply with quote

Assuming your code is as you posted, the default is ACCESS IS SEQUENTIAL. This requires records be processed in key sequence. You cannot insert a LOW-VALUES record after processing the deletes since the LOW-VALUES record will not be in sequence. This will cause a logic error exactly as you've seen. You must close the file, open it again, and then you should be able to write the LOW-VALUES record. However, considering the significant gaps in the data you've presented us, there's no guarantee that this will work since you may have not mentioned some other critical factor.
Back to top
View user's profile Send private message
rohitvw

New User


Joined: 04 Feb 2009
Posts: 12
Location: Chennai

PostPosted: Tue Feb 10, 2009 9:37 pm
Reply with quote

Hi Robert.

The problem is with access mode only, it should be dynamic to write a record when few records are already present in KSDS file.

Thanks for your help and efforts, I really appreciate that.

I first time used this forum, I am finally very happy as my code is working as required.

Thank you very much.

Regards
Rohit.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Feb 10, 2009 9:47 pm
Reply with quote

Glad to hear you got it working!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top