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

Question ID : 231
Created on 2014-05-29 at 5:49 AM
Author : Veryant Support [support@veryant.com]

Online URL : http://support.veryant.com/support/phpkb/question.php?ID=231



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


Back to Original Question