|
How can I control the EOR characters on an FTP'ed file? By default, when I FTP a (flat) file from the /400 to a Unix box, FTP adds CR/LF to the end of the record. Sometimes I only want a CR.
I tried using the STRUCT R subcommand, but that gave me odd results. On a 2 record file, after the first record x'FF01' was appended and after the last x'FF03'. Is this supposed to happen?
The flat file was created via CRTPF w/ a record length of 3,000 (plenty of room to accommodate the data.) I am populating it via CPYTOIMPF. I tried playing w/ the RCDDLM() parm, but that only allows one character when copying to a database file (as opposed to the IFS.)
dev> od -c DBflatfile.txt 0000000 * * R E P \t e m p t y \n * * A R 0000020 _ I N V _ B A T C H \t e m p t y 0000040 \n
HTH, Billy
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.