> On Mon, Jun 4, 2012 at 12:11 PM, Farley, Peter x23353
> <[email protected]> wrote:
> > The subject is the question.  Obviously I can insert a WORKING-
> STORAGE switch that is off by default and a "D"ebugging line in the 
> PROCEDURE division to turn "on" that switch when "WITH DEBUGGING" is
> in effect, but this seems clumsy to me.
> >
> > If there is another way, I'd appreciate any info you can provide.
> >
> > Peter
> >
> >

How about creating 2 load modules of the same program? 1 with the 
debugging option and other without it? You can use the same proc for both 
the programs by making the PGMName a symbolic. 

ex: something like this 

//PROCNAME PROC PGMNAME='NO-DEBUG-PGM' 
//STEP0100 EXEC PGM=&PGMNAME 
//STEPLIB  DD DSN=PGM.TEST.LINKLIB,DISP=SHR 
//SYSOUT   DD SYSOUT=* 
//SYSPRINT DD SYSOUT=* 
...
//* 
//        PEND 
//RUN      EXEC PROCNAME,PGMNAME='DEBUG-PGM' 

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

Reply via email to