HP3000-L Archives

April 1998, Week 2

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:
"Wayne, Roby" <[log in to unmask]>
Reply To:
Wayne, Roby
Date:
Mon, 13 Apr 1998 12:23:46 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
Greetings, Gurus:

I have two processes on my HP3000 that access the same file.  This file
is used to "hold" transactions for a PC process to read.

The first process opens the RIO file as APPEND ONLY and performs FWRITEs
to get the records into the file.

The second process opens the RIO file as UPDATE and reads all of the
records to determine if they are for the requesting PC.  Then it
performs an FDELETE.

Well, this seems to work....a little :-).  When the first process puts a
record in the holding file and the PC queries for it, it returns one
record and performs an FDELETE.  If the PC immediately queries again, it
is told that there are no records available.  However, when the first
process appends another record to the holding file, the PC queries and
receives TWO records.  If the PC immediately requeries, it is told that
there are no records available.

I am sure there is a better way to do this, but I am not sure how.  It
appears that my FDELETE (inactive RIO records) are being trampled on
subsequent writes from the first process.

Any ideas??  I am desperate.

Roby

===================================+====================
Roby Wayne                         | [log in to unmask]
MIS Project Leader                 | (804) 832-7335
Belvac Production Machinery, Inc.  | (804) 239-1964 Fax
Lynchburg, VA                      |
===================================+====================

ATOM RSS1 RSS2