Previous Topic Next topic Print topic


The FaultFinder Source Listing

The FaultFinder listing is composed of several parts.

The examples of output in the topics describing these parts were generated using the following program:

 program-id. 'funbar'.
 working-storage section.
 01 ws-var-1    pic x(255).

 thread-local-storage section.
 01 tls-var-1   pic x(1021).

 local-storage section.
 01 ls-var-1    pic x(511).

 linkage section.
 01 lnks-var-1  pic x(2011).
 01 lnks-var-1r pic a(1024) redefines lnks-var-1.
 01 lnks-var-2  pic x(3096).

 procedure division using lnks-var-1 lnks-var-2.
     move tls-var-1 to ws-var-1 
     if ws-var-1 = lnks-var-1 
         display ls-var-1 
     end-if 
     stop run.

This program was compiled to generated code, and the FaultFinder listing generated using the commands:

cobol fun.cbl;
cbllink fun.obj
fflst –l19 fun.idy fun.lst
Previous Topic Next topic Print topic