Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
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).