Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

COBOL Programming :: RE: Wildcard logic in COBOL

$
0
0
Author: dudenithy
Posted: Tue Sep 06, 2016 9:15 pm (GMT 5.5)

Robert Sample wrote:
Since your COMPLEX-LOGIC changes the values of WS-Q and WS-A, you need to place
Code:
           INSPECT PARM TALLYING WS-Q FOR ALL '?'                     
           INSPECT PARM TALLYING WS-A FOR ALL '*'
inside the PERFORM loop or you'll get invalid results for all input records after the first one.


Agreed. Indeed I had INSPECT inside each file record read process during my testing. But when putting into forum, I simplified the code not to becoming too big icon_smile.gif.


Viewing all articles
Browse latest Browse all 9405

Trending Articles