Subject: | |
From: | |
Reply To: | |
Date: | Thu, 26 Apr 2001 15:46:05 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi Pat,
Couldn't you do a DBFIND, then check the Chain Length (bytes 5 and 6 in the status array)? IIRC, that always worked for me.
Regards
Pat Shugart wrote:
> Hello all,
>
> I need to determine in a DBFIND (not DBGET) if an entry exists in a specific
> dataset for a key value. I hope I can make my explanation clear enough...
>
> For example:
>
> Dataset A (DETAIL)
> PATHNAME = KEY
> VALUE = "HI MOM"
>
> Dataset B (DETAIL)
> PATHNAME = KEY
> VALUE = "HI MOM"
> or
> The value may not exist at all in B while it exists in A
>
> Both use the same auto-master.
>
> I'm reading in a file and trying to determine if a duplicate record condition would occur if I were to do a DBPUT. I'm thinking that DBFIND only interogates the master entry and its chain length and not specific to the dataset. Is that correct? We tried doing a DBFIND and a DBGET, but it broke something else in the program and we're trying to do as little work as possible (isn't that always the case?)
>
> TIA for any thoughts,
>
> ..................................................................
> τΏτ ®Ώ®* τΏτ ®Ώ®* τΏτ ®Ώ®* τΏτ
> ..................................................................
> Pat Shugart
> Trinity Information Services
> Farmington Hills, MI 48331
> 248.489.6123
> 248.488.9195 (fax)
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
--
----------------------------------------------------------------------
John MacLerran
IT Systems Analyst email: [log in to unmask]
Idaho State University V(208) 282-2954
http://www.isu.edu/~macljohn F(208) 282-3673
----------------------------------------------------------------------
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|