The K will make a difference in the way the file is read, and yes, you can add records to an input file.

Jerry Adams wrote:

Booth.

Honestly I don't know if the 'K' is required in this case or not; I just always use it.

But shouldn't the file type be either 'U' or 'O'? I never tried adding records to an Input file, but RPG IV is so advanced maybe it can handle it.


        * Jerry C. Adams
*IBM System i Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
        615.995.7024
fax
        615.995.1201
email
        jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



Booth Martin wrote:

The F-spec when adding records to a keyed file.

This is not clear to me. An RPGLE program adds records to an externally described, keyed, file.

Does the F-spec need the k?

  FFILEA  ip  a e              disk

Does this look right to you?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.