DCI_WHERE_CONSTRAINT seems to be ignored, how can I have this feature?


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_CONSTRAINT
change it to
   MOVE "cod > 100" TO DCI_WHERE_CONSTRAINT
   CALL "DCI_SET_WHERE_CONSTRAINT" USING DCI_WHERE_CONSTRAINT


Article ID: 231
Created: May 29, 2014
Last Updated: March 8, 2024
Author: Support KB Author

Online URL: https://support.veryant.com/support/phpkb/article.php?id=231