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
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!