View previous topic :: View next topic
|
Author |
Message |
luttapi
New User
Joined: 05 Jun 2007 Posts: 24 Location: kerala
|
|
|
|
For flat files (PS file) which are different scenarios usually happening which will cause open error read error close error.Is it need for checking in open,read errors in our cobol programmes ? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Usually errors with PS files are dcb incompatabilities between the file, the jcl, and/or the program definition of the file. You can also have errors when you try to open an already open file, close a file that is not opened (might never have been opened or has already been closed), read/write when the file is not opened or issue a read after end-of-file.
Concerning using file-status in your code, i suggest finding whether your organization has a programming standard and if there is one, follow that standard.
For myself, i have never used file-status for PS files in code i have written other than to demonstrate one thing or another to someone in a q&a type setting (like these forums). |
|
Back to top |
|
|
luttapi
New User
Joined: 05 Jun 2007 Posts: 24 Location: kerala
|
|
|
|
thanks , thanks a lot |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome |
|
Back to top |
|
|
|