Vsam file status 23 start




















If you check the file status, you can direct the program what to do next on a particular status code, otherwise the program execution may not be in the correct flow as expected. Hope you are aware of this but still wanted to remind you. You have given the pseudocode but didnt mention about the mode in which you have opened the files. If you want a permanent fix for this, mention how you have opened the files and how the comparision has been coded with flow.

Cheers, Jayind. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 6 years, 9 months ago.

Active 6 years, 9 months ago. Viewed 7k times. DAT file: "Indicates no record found. Improve this question. Bill Woodger Webs Webs 53 1 1 silver badge 7 7 bronze badges.

Add a comment. Active Oldest Votes. A couple of comments on your code. Improve this answer. Bill Woodger Bill Woodger Successful completion. Not a valid File Status Key. Possible causes: For a READ statement, the key value for the current key is equal to the value of that same key in the next record in the current key of reference.

Not a valid File Status Code. Attempted to read from a file opened for output. No room in directory or directory does not exist. Attempted to open a file that is already open. No next logical record at end. Relative files only. A sequential READ statement is attempted for the first time on an optional file that is not present.

Too many device files open. Record error: probably zero length. Rewrite error: open mode or access mode wrong Micro Focus only. Device or resource busy Micro Focus only. Too many Indexed files opened. If i fill 0 in all fields and run the pgm with one single record in VSAM, it runs fine How to handle if the VSAM is empty? Back to top.

The file status of 23 is a valid one and should be checked for and when found, treated as normal. You need to distinguish between an empty VSAM file, which has no records in it, and an initialized VSAM file, which you say has a record with all spaces in it. Posted: Fri Sep 26, am. You can handle the empty file by checking the end of file condition , condition code is



0コメント

  • 1000 / 1000