|
----- Message from MichaelQuigley@xxxxxxxxxx on Thu, 4 Jun 2015 16:API
06:27 -0400 -----
To:
midrange-l@xxxxxxxxxxxx
Subject:
Re: Line-ending for IFS test stream file
See comments below:
"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 06/04/2015
09:18:08 AM:
----- Message from paul.roy@xxxxxxx on Thu, 4 Jun 2015 00:57:56 +0200-----
To:
"Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Subject:
Re: Line-ending for IFS test stream file
Could it be that the length passed to the write() api is simply
miscalculated ?
Paul
Thanks Paul but no, the data is written correctly. There are multiple
records and by debugging I can verify that each record is properly
delimited by <CRLF> after the write() API. It's after the ftruncate()
that the line ending (record delimiter) characters are changed from<CRLF>
to <CR>. On a wild hair, I modified the code to add an additional <LF><LFLF>
between each record and at the end of the file. This leaves me with
for record delimiters. I've put my program back to its original form and
opened the PMR.
----- Message from Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx> on Thu,
04 Jun 2015 08:06:00 -0500 -----
To:
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject:
Re: Line-ending for IFS test stream file
Hi Michael
I had a suspicion that the ftruncate utility outputs only CRs or LFs -
forone of the other - so the documentation might be elsewhere as to this
behavior. The utility is found in Unix and Linux and has been around
the
a long time,. so there is expected behavior. Not sure if it can be
managed with options.
I did run across some hits that suggest that something like this is
case. I will be curious to hear IBM's answer.
Cheers
Vern
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.