HP3000-L Archives

March 2003, Week 4

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:
"Porter, Allen" <[log in to unmask]>
Reply To:
Porter, Allen
Date:
Fri, 21 Mar 2003 17:38:25 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
We have a legacy C program running on our HP3000's requiring maintenance due to a change in the files used for input.

The files used for input are fixed ASCII with max rec nums (flimit) of over 4,000,000; previously, the flimit of the input file was 2,000,000 or less.  The C prog copies the input file, opens that copy in write mode (essentially copying the format of the input file for output), then writes out records to the output file.  Now that the input files' flimits have grown, C is unable to write to the output file after opening the file in write mode.

This is the line that fails, where "argv[2]" holds the output filename:

fopen(argv[2],"w")

Using different modes for output ("w+", "wb", and "wb+") do not fail as "w" does, but the output is in an unusable format.

I don't know whether the problem lies with the C prog, i.e. limit of a stream buffer, or with some limitation on the HP or with MPE.  Is anyone able to offer assistance?  Alternatively, though not ideal, if I could make some kind of call to MPE from the C prog to alter the flimit of the input file prior to the copy, I could avoid the problem.

Thanks in advance!
Beth Elam
[log in to unmask]





Confidentiality Warning:  This e-mail contains information intended only for the use of the individual or entity named above.  If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, any dissemination, publication or copying of this e-mail is strictly prohibited. The sender does not accept any responsibility for any loss, disruption or damage to your data or computer system that may occur while using data contained in, or transmitted with, this e-mail.   If you have received this e-mail in error, please immediately notify us by return e-mail.  Thank you.

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

ATOM RSS1 RSS2