APIs by Example: Read/Write an IFS File Line in RPG IV

This installment of “APIs by Example” offers sample RPG code showing how to read a text line from an IFS file until a line terminator is encountered, and also how to write a line to an IFS file.

The sample code consists of three RPG IV programs that create and read three text files in QOpenSys to show how the APIs work.

Download the save file containing the source code.

Read the entire article

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s