DCI_WHERE_CONSTRAINT seems to be ignored, how can I have this feature?
Estimated Reading Time: 1 Minutes
NOTE:
Full support was added for DCI_WHERE_CONSTRAINT in version 2016R1 and the DCI Interface version 5.3.3.
The information below is only applicable to isCOBOL and DCI Interface prior versions.
The WHERE CONSTRAINT feature is supported by isCOBOL, but it's provided as callable library routine rather than an external variable.
To activate the feature in isCOBOL, after you set the DCI_WHERE_CONSTRAINT variable, call the DCI_SET_WHERE_CONSTRAINT routine passing the variable.
For example, if you have a code like this:
MOVE "cod > 100" TO DCI_WHERE_CONSTRAINTchange it to
MOVE "cod > 100" TO DCI_WHERE_CONSTRAINT CALL "DCI_SET_WHERE_CONSTRAINT" USING DCI_WHERE_CONSTRAINT