Hi Mary,
How are you creating these files? It looks like you're using some RPG
code, but then what?
From your symptoms, my best guess (and this is really a stab in the
dark) is that you are putting the data into a PF (flat file) and
manually adding CRLF onto the end of each record.
Then, when OS/400 converts the file from a PF to a stream file in order
to send it over FTP, it *also* adds a CRLF, resulting in two CRLFs at
the end of every record, and therefore a blank line between each. You
don't need to manually add a CRLF if you are writing your data to a PF
and then FTPing it from the PF in ASCII mode. The system will add it.
On the other hand, if you are building a stream file off the bat in your
RPG program, you'll want to code the CRLF. If that's what you are doing
and you're still having this problem, then further exploration will be
necessary. A big help would be to get a hex dump of the file (actually
just a record or two would be fine) before transfer, and after transfer.
Mary E Mallazzo wrote:
We need to transfer several files from the I5 to a windows server ,the files
require an CRLF at the end of each record. The data appears correct on the
I5, but when viewed on the server there is a blank line between each
records..obviously as a result of the CRLF.how can we have a CRLF at the end
of each record yet not have a blank record created on the server side. We
are creating the file via RPGLE creating the CRLF as
D crlf CONST('X'0d25')
Thanks
Mary
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.