
- Forum
- Programming Talk
- COBOL
- inspect with after and before together.
inspect with after and before together.
This is a discussion on inspect with after and before together. within the COBOL forums, part of the Programming Talk category; hello I am using cobol version 2.20 and not able to use after and before options together with inspect verb.When ...
-
08-05-2009, 02:34 AM #1
- Join Date
- Aug 2009
- Answers
- 1
inspect with after and before together.
hello
I am using cobol version 2.20 and not able to use after and before options together with inspect verb.When i am coding like
inspect string tallying countvariable for CHARACTERS BEFORE initial literal1 AFTER initial literal2.
one error is coming the "literal2" character is not found.
when i am giving only one option ie,before or the after it is working.
could any one help me .
-
The inspect clause is a really helpful tool, but it is not the end all of tools. You can not use both options in the same statement. If you really want the count, just use 2 statements. Tallying numb for the before and another tallying numba for after.... Another useful string command that might help you, is the unstring delimited by "xx"...
-
Just use 2 statements... also check out unstring with the delimited option
-
Sponsored Ads

Reply With Quote





