>I have a very complex COBOL program where I am investigating a calculation =
>error, but the code test bed winds up invoking it for quite q few more time=
>s than I am interested in seeing variable values during the calculation pro=
>cess.

>What I would like to do is to turn on LE COBOL DEBUG at the start of the ba=
>tch driving program then turn it off dynamically until one specific place w=
>here the program at issue is called, turn it ON before the call and then tu=
>rn is off again on return from that call.

Debugging lines that start with D are activiated by a COBOL clause:
WITH DEBUGGING MODE, on the PROGRAM-ID statement.  You could have that clause
in only the program you are inerested in.  The whole application would have to
to be run with the LE DEBUG option, but only programs that have WITH DEBUGGING
MODE will activate the debugging lines.

Cheers,
Tom Ross  (AKA Captain COBOL :-)    >> COBOL is the Language of the Future! <<

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to