Since you changed your path by doing the second DBFIND for the mode 5 EOC
read, you will have to do another DBFIND to set the path/pointer for your
first "@" argument.
Another method would be to open the DB twice, and then you can toggle back
and forth from the 2 search methods (via the separate DBOPEN id's), and not
have to redo any DBFINDS.
> -----Original Message-----
> From: Tracy Pierce [SMTP:[log in to unmask]]
> Sent: Monday, October 22, 2001 3:15 PM
> To: [log in to unmask]
> Subject: Image B-tree troubles
>
> Searched archives, read the latest manual, including chapter 11 on btrees,
> but I'm too thick to figure this out:
>
> In an image base I have
> FLEET-MASTER indexed on its key item FLEET.
> SCHEDULE is detail to FLEET-MASTER. (searchitem is FLEET; no choice,
> right?).
>
> In a screen pgm I do
> DBFIND mode 1 set FLEET-MASTER search FLEET arg @.
> Then the user chooses fwd/bwd via F1/F2, invoking DBGET mode 5/6 vs
> FLEET-MASTER, getting each in ascii sequence.
>
> Works great. But I want to display the detail chain too...
> DBFIND mode 1 set SCHEDULE search FLEET arg {the specific fleet}
> DBGET mode 5 until end of chain, still great.
>
> How do I get back on the b-tree chain for the next F1/F2?
>
>
> K Tracy Pierce
> Systems Programmer
> Golden Gate Bridge, Hwy & Trnsp Dist
> P.O.Box 9000, Presidio Station
> San Francisco CA 94129-0601
> 415-923-2266
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|