Exforsys
+ Reply to Thread
Results 1 to 3 of 3

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 ...

  1. #1
    deepthikk22 is offline Junior Member Array
    Join Date
    Aug 2009
    Answers
    1

    Unhappy 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 .


  2. #2
    eddie13 is offline Junior Member Array
    Join Date
    Jul 2007
    Answers
    8
    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"...


  3. #3
    eddie13 is offline Junior Member Array
    Join Date
    Jul 2007
    Answers
    8
    Just use 2 statements... also check out unstring with the delimited option


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...