HP3000-L Archives

March 2000, 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:
"TRAPP,RICH (Non-A-Loveland,ex1)" <[log in to unmask]>
Reply To:
TRAPP,RICH (Non-A-Loveland,ex1)
Date:
Wed, 15 Mar 2000 09:25:24 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
I think the C/ix Buffered read is biting you.  I'd suggest doing setvbuf to
null on the file handle for the message file.  That will turn off the C/iX
libraries buffering and should handle it.   (just guessing based on passed
issues with buffering...)

RAT

_______________________________________________________________________
 Rich Trapp "RAT"
 Managed Business Solutions   [log in to unmask]   http://www.mbsnav.com
 Assigned to Design Automation Support at Agilent Technologies
 (Telnet) or (970) 679-2221  [log in to unmask]  Loveland, Colorado, USA

_______________________________________________________________________


-----Original Message-----
From: cdlvj [mailto:[log in to unmask]]
Sent: Tuesday, March 14, 2000 1:57 PM
To: [log in to unmask]
Subject: Message file Buffering


Hi,

What is the process to turn of logical reads on a message file in a C
program?

I want my fread to return only 1 record, and exit.
The next time the program is run, the record that is returned is many
records down the line, ie the first logical record in the block.

We have it working in Cobol, and want to get same results in "C".
Thanks in advance.

ATOM RSS1 RSS2