I noticed in the ZFile class that the native flocate() method returns void. However, the z/OS C/C++ Library Reference indicates that the flocate() method returns an int value to indicate the success/failure of the search (zero if successful, EOF if not). Is this a discrepancy or am I reading something wrong?
It would be nice if I could check a return value of my locate before trying to do a read(). A read() with an invalid locate seems to cause an abend.
There are, of course, ways of getting around this (use locate GE instead of EQ), but I was just wondering why the difference in the method definition.
Thanks.