RPG Coding for Universal Display Files

Ā 

An RPG program can use the Universal Display File handler by declaring a Universal Display File in the program with HANDLER keyword, as shown here:


Ā 
The Universal Display File Handler supports only the following operations:

  • Open

  • Close

  • Write

  • Read

Any other operation will result in an I/O error being received by the RPG program.

When a WRITE operation is performed, the record formatā€™s static content will be combined with the current field data from RPG, and the content will be written to either HTTP or file output, depending on the ā€œdestinationā€ property on the record format. A READ operation is only valid when running in the Web Connector, HTTP input parameters can be received.

RPG coding considerations are different for running in the Web Connector, vs. standard program call.

Ā