We have this program FINDSTR (a great program btw ... get it from the
CSL) which searches for strings in a file. Well this one file would
return an error:
FINDSTR DOUT.WORKDB ~V LOG
Dynamic LOCKING was specified on a previous OPEN of this file, and
dynamic
LOCKING was not specified on this call to HPFOPEN. (FILE OPEN ERROR
-430)
File System message 430
So I went in to the source and added code to open the file with the
dynamic locking option set on and multijob access on. The Fopen now
returns success.
However, the FREAD is then failing on this file. It's returning:
END OF FILE (FSERR 0)
Why?? So after some experimentation I determined if I add an FPOINT
before each FREAD (FPOINT to rec 1,2,3 ....) then the FREAD succeeds.
So why for files of this type do you have to FPOINT to each record
before the FREAD? Anyone know? Is there a "correct" way to get this to
work?
Thanks. Greg Fudala. Circuit City Stores
Greg [log in to unmask]