Cobol EXAMINE statement

Sort:
You are not authorized to post a reply.
Author
Messages
Karl Kemp
Basic Member
Posts: 20
Basic Member
    Has anyone ever used the Micro Focus COBOL Examine statement within Lawson?

    I have used this in non-Lawson apps with success, but can't seem to get it to work in Lawson.

    Maybe you have other ideas.

    Here is what I am needing to do.

    I'm reading a file with records such as the following

    rec 1 = /lawson/work:
    rec 2 = /lawson/obj:

    I'm needing to determine where the ":" character is on each individual record. Thus I was going to use the EXAMINE TALLYING UNTIL statement.

    Thoughts?
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      Karl, the 'TALLYING' construct is invalidated by Lawson's "bismark" pre-compiler.
      The workaround is to use PERFORM ... VARYING ... UNTIL ...
      Thanks for using the LawsonGuru.com forums!
      John
      You are not authorized to post a reply.