Search code examples
unixtracecobol

Unix MicroFocus COBOL TRACE


Any one knows how to turn on the trace in Unix Micro Focus Cobol?
I googled it. I need to put READY TRACE statement, but in addition, it also said something about Compiler directive which I do not know.
My compiling statement is like this:
cob -xvP /src/AAA.CBL /obj/TORDCNCL.int -o /bin/AAA
There is no man page for it.


Solution

  • According to the current MF documentation on the READY TRACE statement:

    • you have to use another dialect than VSC2 (where it is documentary only)
    • it is likely only accepted + handled in OSVS dialect at all
    • it needs the TRACE directive to be active, by either
      • passing syntax-check phase directive to the compiler via (in this case) -C TRACE or
      • the option to only activate it for this single program is to add the directive directly in the source (as it is "initial" you need to place it before any program code), to do so put the following in your program:
           $SET TRACE