Can a COMPUTE Statement include relational operators that are stored in working-storage fields, or do they have to be literals in the statement.
For example, can the field WS-REL-OPER1 contain the operator "+", and the statement read...
COMPUTE RESULT = FLDA WS-REL-OPER1 FLDB
I am looking for a way to allow a calculation to be performed using data stored in a file, so the calculation field values and operators depend on data read from records. I haven't run this though a compiler yet.
For example, can the field WS-REL-OPER1 contain the operator "+", and the statement read...
COMPUTE RESULT = FLDA WS-REL-OPER1 FLDB
I am looking for a way to allow a calculation to be performed using data stored in a file, so the calculation field values and operators depend on data read from records. I haven't run this though a compiler yet.