Hi, I have a Cobol program that reads values from a sequential file. So that if the values change we do not have to release the code again, just a data file change with new values. The problem i am getting to make operators configurable.
for example: I have one If statement like
IF DRUG_DOSAGE > 50 so in this case i can read 50 from the sequential data file. but this condition can change to "IF DURG_DOSAGE < 50" in this case i need to change the code as operator is changed.
So my question is : Is there a way I can make operators also configurable in my program via data file.
The operators can only be >, <, >=, <=, =
for example: I have one If statement like
IF DRUG_DOSAGE > 50 so in this case i can read 50 from the sequential data file. but this condition can change to "IF DURG_DOSAGE < 50" in this case i need to change the code as operator is changed.
So my question is : Is there a way I can make operators also configurable in my program via data file.
The operators can only be >, <, >=, <=, =