HP3000-L Archives

October 1998, 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:
Therm-O-Link <[log in to unmask]>
Reply To:
Therm-O-Link <[log in to unmask]>
Date:
Mon, 5 Oct 1998 15:47:59 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (47 lines)
Well, thanks to all those who responded to my last inquiry about enabling
CIUPDATE via DBCONTROL, I am in the process of updating a program to make
use of CIUPDATE.  But now, I have some different types of questions.

If I am reading down a chain and updating the values for that chain's
search item, what happens to the chain information?  For instance, this
program does a chained read by a certain value, and replaces the value for
that search item with zeroes.  Can I do:

DBFIND

DBGET (chain forward)

DBUPDATE (with new value)

Go back to DBGET until end of chain is reached

Or will the program "lose its place" on the chain because of the changing
search item values?  If so, then I suppose I will have to save the value of
the next record on the chain and get that record by address, instead of by
chained read, so the processing logic would look like this:

DBFIND

DBGET (chain forward)

Save next record address

DBUPDATE (with new value)

DBGET (by direct record address)

Go back to the "Save" until there is no next record.


On a related note, if I am reading down chain A and changing values for
chain B's search item, what happens to the chain information?  Can I do
what I outlined above in the first logic example, or will I need to keep
track of the chain information in the program, as in the second example?

As always, any and all help is appreciated.

Jim Phillips                            Manager of Information Systems
E-Mail: [log in to unmask]      Therm-O-Link, Inc.
Phone: (330) 527-2124                   P. O. Box 285
  Fax: (330) 527-2123                   Garrettsville, Ohio  44231

ATOM RSS1 RSS2