I need to read a 997 file that is in QSYS.LIB and write it to our IFS. The
file was created using CRTPF RCDLEN(512)
The field indata is defined with i-specs as 512.
I want to read each record, strip out trailing blanks, and write it to an
IFS File. I have Scott K's IFS Ebook on my system. I thought I would just
change the write statement:
if write(fd: %addr(indata): %size(indata))<1;
to use %trim(indata). The editor says the parameter for %addr is invalid.
I don't want to strip out embedded blanks, just the trailing blanks.
Do I have to read the data character by character and write it to the IFS?
Thanks, Jack
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.