× 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.



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




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.