Wednesday, December 7, 2011

COBOL: How to solve file status 35 in KSDS file


If you open a newly created KSDS file into I-O mode. you will get a status of 35. You have to open the file atleast once for output before you can do any processing on it. The other way to do this is to have additional logic in your program

open the file and trap the file status 35. if the open gets a 35, perform some para which contains the following code.

opens the file for output
write some dummy record
delete the record
close the file
and now open for i/o.


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.