HP3000-L Archives

September 2009, Week 3

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:
Tom Lang <[log in to unmask]>
Reply To:
Date:
Sun, 20 Sep 2009 14:13:56 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (96 lines)
Michael,
******
Your link is to Version 6, dated August, 1997, and I have a copy of Version 8, 
dated July, 2001. Both say the same, but in different places.

'Directed end of file' is Exceptional Condition #13.

Appendix A, page A-62 (physical page 548 in Version 6) explains:
AND
Appendix A, page 585 (Version 8) explains:
13   MESSAGE   Directed end of file
      MEANING    DBGET has been called for a directed read with a record
                      number greater than the capacity of a dataset.
      ACTION      Appropriate action depends in program design.

So the program will have to test for this Exceptional Condition regardless of all 
else and take appropriate action to explain and handle the specific error.

Kishan,
*****
Does you program test/handle the exceptional condition #13 immediately after 
the DBGET mode 4?

Kindest Regards,
Tom.

On Sun, 20 Sep 2009 00:59:21 -0500, Michael 
<[log in to unmask]> wrote:

>This error is usually a programming logic error, and reading by record
>number can cause problems. It is best to avoid if possible, but I use it
>all the time ;-)
>
>If the logic in your program is such that it DBGET's records, and stores
>the RECORD-NUMBER's  for use later within the same program, then the
>following should be true.
>
>You should have put a lock around all associated records. Even if you
>are not going to DBUPDATE the record, another process can delete your
>record number.
>
>Before you call DBGET with mode=4, you should of previously called dbget
>to read a record from this data set 'xxxx',  using mode 1, 2, 3, 5, 6,
>or possibly 7. I don't know of any other way to retrieve a valid
>RECORD-NUMBER.
>
>The program should have stored (MOVE) the RECORD-NUMBER to another
>variable, eq MY-RECORD-NUMBER.
>
>Before you call DBGET with mode=4, you'll first need to move
>MY-RECORD-NUMBER to RECORD-NUMBER.
>
>The TurboImage/SQL Manual:
>
>http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01704333
/c01704333.pdf
>
>Michael Anderson,
>J3k Solutions
>Sr.Systems Programmer/Analyst
>832.515.3868
>
>
>
>Jai Kishan wrote:
>> Hello Guys,
>>
>> I'm trying to below turbo image debug error but I couldn't get any clue.
>> Could you please help me out?
>>
>> TURBOIMAGE error- Directed end of file - DBGET, mode=4 on xxxx 
(dataset) of
>> YYYY(database name)
>>
>>
>> Through ADAGER, we examined all paths for the dataset. It didn't report 
any
>> errors.
>>
>> Please help.
>>
>>
>> Thank you,
>> Kishan.
>>
>> * 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 *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2