HP3000-L Archives

February 2000, 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:
Erik Vistica <[log in to unmask]>
Reply To:
Erik Vistica <[log in to unmask]>
Date:
Mon, 14 Feb 2000 12:16:33 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (29 lines)
As you've found out, the Intrinsics manual is misleading on this point.
You can find mention of this behavior documented in the manual

  Interprocess Communication Programmer's Guide (p/n 32650-90019 )
  Appendix A - Features of Intrinsics for Message Files, page A-2.

So, the default behavior is to open as Fixed. I never gave much thought
to the performance implications until reading this thread. (I learn
something new *every* day).

Tony Summers wrote:
>
> A big thank you to Tad Bochan, Stan Sieler and Gavin Scott.
>
> In summary.  I was writing to a (pre-built) variable length message file
> and then reading it back, but the records were being returned as fixed length
> records.
>
> The problem is that you have to OPEN the message file for READ setting
> the Foption bits for RECORD FORMAT = VARIABLE LENGTH.
>
> Thus, as Stan stated open it as Fopen(f,%107), but since
> I use HPFOPEN,  this translated to Item Number = 6 and item value = 1.
>
> What's confusing is that my manual states that this Foption setting
> is only applicable at file creation.     Mmmmmmmm !
>
> Many thanks again.

ATOM RSS1 RSS2