Cobol EXAMINE statement

 1 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Karl Kemp
Basic Member Send Private Message
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
Send Private Message
Posts: 3351
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