The program is assember it’s 14 csects is there a way to trace it displaying 
offsets / location counter 




> On Apr 17, 2019, at 8:37 PM, Peter Van Dyke <pdvand...@gmail.com> wrote:
> 
> Hi,
> 
> This can be done with Debug Tool. The following JCL is for a batch job that
> runs a COBOL program and has Debug Tool write a trace of all statements and
> labels executed. It also shows the values of all referenced variables. The
> trace is written to the INSPLOG DD.
> 
> //VANDYKET JOB (ACCTG),'DT JOB',REGION=0M,CLASS=A,
> //          MSGCLASS=X,NOTIFY=&SYSUID,MSGLEVEL=(1,1)
> //*
> //RUNSAM1  EXEC PGM=ADSTAT,REGION=4M,
> //    PARM='/TEST(,DTCMD,,)'
> //STEPLIB  DD DSN=&SYSUID..LOAD,DISP=SHR
> //*        DD DSN=DEBUG.V10R1.SEQAMOD,DISP=SHR
> //INSPLOG  DD SYSOUT=*
> //DTCMD    DD *
>  /*            DEBUG TOOL COMMAND FILE           */
>  /*        TO PRODUCE A FULL STATEMENT TRACE     */
>  /*                                              */
> CLEAR AT;
> AT * BEGIN;
>   LIST LINE %LINE;
>   GO;
> END;
> AT LABEL * BEGIN;
>   LIST LINE %LINE;
>   GO;
> END;
> /*  STEP 2; */
> SET LOG KEEP 3000;
> SET AUTO ON LOG;
> GO;
> //*
> //SYSPRINT DD SYSOUT=*
> //SYSOUT   DD SYSOUT=*
> //*
> 
> Regards,
> Peter Van Dyke
> 
>> On Wed, 17 Apr 2019 at 23:50, Joseph Reichman <reichman...@gmail.com> wrote:
>> 
>> Hi
>> 
>> Would anyone know if I could run debug tool
>> As a batch job producing an instruction trace of a program thanks
>> 
>> ----------------------------------------------------------------------
>> For IBM-MAIN subscribe / signoff / archive access instructions,
>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>> 
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to