Does anyone have any example programs where an RPG statement can be constructed from a file?
Example: Below is a file with a result field and conditions. I would like to have the RPG program read the file and execute the statement:
IF FIELD1=1 or FIELD4=2 or FIELD6 = 'ABC' then 'XXX'.
Result Field . . . . : XXX
A/O Fld Name Oper Value
FIELD1 EQ 00001.00
O FIELD4 EQ 00002.00
O FIELD6 EQ ABC