Subject: | |
From: | |
Reply To: | TRAPP,RICH (Non-A-Loveland,ex1) |
Date: | Wed, 15 Mar 2000 09:25:24 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
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.
|
|
|