Top
NetCOBOL V11.0 Debugging Guide
FUJITSU Software

5.7.2 Source Program Listing

When the compile option SOURCE is specified, a source program listing is generated in the compiler list file. In addition, when the compiler option COPY is specified, library text fetched by the COPY statement is generated in the source program listing.

Source program listing output format

The output format of the source program listing is shown below.

    LINE   SEQNO  A  B
           [1]     [2]
       1   000100 IDENTIFICATION DIVISION.
       2   000200 PROGRAM-ID. A.
       3   000300*
       4   000400 DATA DIVISION.
       5   000500 WORKING-STORAGE SECTION.
       6   000600     COPY  A1.
     1-1 C 000600 77 answer   PIC 9(2).
     1-2 C 000700 77 divisor  PIC 9(2).
     1-3 C 000800 77 dividend PIC 9(2).
       7   000900*
       8   001000 PROCEDURE DIVISION.
       9   001100*
      10   001200     MOVE  10 TO dividend.
      11   001300     MOVE   0 TO divisor.
      12   001400*
      13   001500     COMPUTE answer = dividend / divisor.
      14   001600*
      15   001700       EXIT PROGRAM.
      16   001800 END PROGRAM A.