well.... for a quick fix you can PASE your way out with a shell "truncate -1" to remove last byte...but man, ain't ugly eh?, close your eyes while doing it
btw in the RFC for CSV the last one is specified as optional, so a receiving parser should be obliged to recon..
On Wednesday, November 12, 2025 at 04:43:52 PM GMT+1, Jim Franz <franz9000@xxxxxxxxx> wrote:
Creating fixed length (801) ascii txt file with LF in 802 but requiring
last row to have no LF.
This is not a written requirement but their workaround after state
government agency I'll not name implemented a new web portal (old portal
upload worked for 10+ years, New portal breaks as its failing looking for
next record that does not exist.
I'm only assisting to fix issue.
File created CPYTOSTMF UTF-8 and rows added with CPYTOIMPF
I could build a RPGLE pgm to remove last row LF, but is there a script way
of doing this that can execute from clle? Not too familiar with script
except sftp processing. V7R5
Thx
Jim Franz...
This mailing list archive is Copyright 1997-2026 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.