Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Example: assembler code generated from source code

The following example shows a listing of the assembler code that is generated from source code when you use the LIST compiler option. You can use this listing to find the COBOL verb that corresponds to the instruction that failed.

DATA VALIDATION AND UPDATE PROGRAM    IGYTCARA Date 12/30/2007 Time 10:48:16
000433  MOVE
000435  READ
000436  SET   (1)
 
    (2)          (3)              (5)                        (6)
    000F26  92E8 A00A              MVI  10(10),X'E8'          LOCATION-EOF-FLAG
    000F2A                GN=13    EQU  *
    000F2A  47F0 B426              BC   15,1062(0,11)         GN=75(000EFA)
    000F2E                GN=74    EQU  *
000439  IF
    000F2E  95E8 A00A              CLI  10(10),X'E8'          LOCATION-EOF-FLAG
    000F32  4780 B490              BC   8,1168(0,11)          GN=14(000F64)
000440  DISPLAY
    000F36  5820 D05C              L    2,92(0,13)            TGTFIXD+92
    000F3A  58F0 202C              L    15,44(0,2)            V(IGZCDSP )
    000F3E  4110 97FF              LA   1,2047(0,9)           PGMLIT AT +1999
    000F42  05EF                   BALR 14,15
000443  CALL
    000F44  4130 A012              LA   3,18(0,10)            COMP-CODE
    000F48  5030 D21C              ST   3,540(0,13)           TS2=4
    000F4C  9680 D21C              OI   540(13),X'80'         TS2=4
    000F50  4110 D21C              LA   1,540(0,13)           TS2=4
    000F54  58F0 9000              L    15,0(0,9)             V(ILBOABN0)
    000F58  05EF                   BALR 14,15
    000F5A  50F0 D078              ST   15,120(0,13)          TGTFIXD+120
    000F5E  BF38 D089              ICM  3,8,137(13)           TGTFIXD+137
    000F62  0430                   SPM  3,0
    000F64        (4)    GN=14    EQU  *
    000F64  5820 D154              L    2,340(0,13)           VN=3
    000F68  07F2                   BCR  15,2
(1)
Source line number and COBOL verb, paragraph name, or section name

In line 000436, SET is the COBOL verb. An asterisk (*) before a name indicates that the name is a paragraph name or a section name.

(2)
Relative location of the object code instruction in the module, in hexadecimal notation
(3)
Object code instruction, in hexadecimal notation

The first two or four hexadecimal digits are the instruction, and the remaining digits are the instruction operands. Some instructions have two operands.

(4)
Compiler-generated names (GN) for code sequences
(5)
Object code instruction in a form that closely resembles assembler language
(6)
Comments about the object code instruction:
  • One or two operands that participate in the machine instructions are displayed on the right. An asterisk immediately follows the data-names that are defined in more than one structure (in that way made unique by qualification in the source program).
  • The relative location of any generated label that appears as an operand is displayed in parentheses.

related references  
Symbols used in LIST and MAP output


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)