HP3000-L Archives

September 1997, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Fri, 5 Sep 1997 15:25:16 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
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]

ATOM RSS1 RSS2