Hi guys,
I've got a problem with SEARCH ALL. But this problem is specific to OS/390. On VA COBOL compiler, I got correct result.
consider the following code,
SEARCH ALL VALID-VERB-TABLE
WHEN VERB-ENTRY (INDX) = VERB-WORD
MOVE TRUU TO VERB-FOUND-SW.
VERB-ENTRY IS LENGTH 10( X(10)) and VERB-WORD is of length 35.
When a table entry of length 10 say 'INITIALIZE' is encountered, this entry matches with VERB-WORD that contains INITIALIZE-XZYH. i.e., only 10 characters were used for the comparison.
This problem occurs only for SEARCH, IF gives correct comparison results.
Is there exists any solution or compiler option to get rid of this issue.
Regards,
cobp
I've got a problem with SEARCH ALL. But this problem is specific to OS/390. On VA COBOL compiler, I got correct result.
consider the following code,
SEARCH ALL VALID-VERB-TABLE
WHEN VERB-ENTRY (INDX) = VERB-WORD
MOVE TRUU TO VERB-FOUND-SW.
VERB-ENTRY IS LENGTH 10( X(10)) and VERB-WORD is of length 35.
When a table entry of length 10 say 'INITIALIZE' is encountered, this entry matches with VERB-WORD that contains INITIALIZE-XZYH. i.e., only 10 characters were used for the comparison.
This problem occurs only for SEARCH, IF gives correct comparison results.
Is there exists any solution or compiler option to get rid of this issue.
Regards,
cobp