× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Normally FTP tells the other side how many bytes are being sent.
I suspect the requirement means a CRLF is optional on the final record in
the file, but required between all other records in the file. Why? Because
once the file transfer is complete, the receiving program can infer whatever
it wants, including a CRLF.

-Bob Cozzi
www.RPGxTools.com
RPG xTools - Enjoy programming again.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Jim Franz
Sent: Saturday, January 21, 2006 8:58 PM
To: RPG400-L@xxxxxxxxxxxx
Subject: writing ifs file-odd specs

Am writing a ascii text file, fixed field length to be ftp'd to a US Post
Office server.
The following is an exact quote from the specs (Pub 91)
"a line feed and carriage return is needed at the end of every record except
the last record of the electronic file"

1. I assume it's CRLF, not LFCR
2. I have never heard of leaving off the CRLF from the last record? This
file is a Header record (130 bytes), followed by Detail 1 (200 bytes),
Detail 2 (352 bytes),Detail 1, Detail 2, etc. No Trailer record. Detail 2
does have a 7 byte alpha field at end of record that must contain spaces.

Without final CRLF will ftp have a problem?

jim franz

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.