Example of a Formatted Dump
The following figures show an example of a formatted dump of a module similar to DBGEX (see Sample Source for Debug Examples). In order to show how data buffers are handled in a formatted dump we added the output file QSYSPRT.
The dump for this example is a full-formatted dump; that is, it was created when an inquiry message was answered with an 'F'.
Program Status Information
Figure 1. Program Status Information
section of Formatted Dump

- A
- Procedure Identification: the procedure name, the program and library name, and the module name.
- B
- Current status code.
- C
- Previous status code.
- D
- ILE RPG source statement in error.
- E
- ILE RPG routine in which the exception or error occurred.
- F
- CPF or MCH for a machine exception.
- G
- Information about the last file used in the program before an exception or error occurred. In this case, no files were used.
- H
- Program information. '*N/A*' indicates fields for which information is not available in the program. These fields are only updated if they are included in the PSDS.
Feedback Areas
Figure 2. Feedback Areas
section of Formatted Dump
INFDS FILE FEEDBACK I
File . . . . . . . . . . . . . . . . . : QSYSPRT
File Open . . . . . . . . . . . . . . : YES
File at EOF . . . . . . . . . . . . . : NO
File Status . . . . . . . . . . . . . : 00000
File Operation . . . . . . . . . . . . : OPEN I
File Routine . . . . . . . . . . . . . : *INIT
Statement Number . . . . . . . . . . . : *INIT
Record Name . . . . . . . . . . . . . :
Message Identifier . . . . . . . . . . :
OPEN FEEDBACK J
ODP type . . . . . . . . . . . . . . . : SP
File Name . . . . . . . . . . . . . . : QSYSPRT
Library . . . . . . . . . . . . . . : QSYS
Member . . . . . . . . . . . . . . . . : Q501383525 .
Spool File . . . . . . . . . . . . . . : Q04079N002
Library . . . . . . . . . . . . . . : QSPL
Spool File Number . . . . . . . . . . : 7
Primary Record Length . . . . . . . . : 80
Input Block Length . . . . . . . . . . : 0
Output Block Length . . . . . . . . . : 80
Device Class . . . . . . . . . . . . . : PRINTER
Lines per Page . . . . . . . . . . . . : 66
Columns per Line . . . . . . . . . . . : 132
Allow Duplicate Keys . . . . . . . . . : *N/A*
Records to Transfer . . . . . . . . . : 1
Overflow Line . . . . . . . . . . . . : 60
Block Record Increment . . . . . . . . : 0
File Sharing Allowed . . . . . . . . . : NO
Device File Created with DDS . . . . . : NO
IGC or graphic capable file. . . . . . : NO
File Open Count. . . . . . . . . . . . : 1
Separate Indicator Area. . . . . . . . : NO
User Buffers . . . . . . . . . . . . . : NO
Open Identifier. . . . . . . . . . . . : Q04079N002
Maximum Record Length. . . . . . . . . : 0
ODP Scoped to Job. . . . . . . . . . . : NO
Maximum Program Devices. . . . . . . . : 1
Current Program Device Defined . . . . : 1
Device Name . . . . . . . . . . . . . : *N
Device Description Name. . . . . . . . : *N
Device Class . . . . . . . . . . . . . : '02'X
Device Type. . . . . . . . . . . . . . : '08'X
COMMON I/O FEEDBACK K
Number of Puts . . . . . . . . . . . . : 0
Number of Gets . . . . . . . . . . . . : 0
Number of Put/Gets . . . . . . . . . . : 0
Number of other I/O . . . . . . . . . : 0
Current Operation . . . . . . . . . . : '00'X
Record Format . . . . . . . . . . . . :
Device Class and Type. . . . . . . . . : '0208'X
Device Name . . . . . . . . . . . . . : *N
Length of Last Record . . . . . . . . : 80
Number of Records Retrieved. . . . . . : 80
Last I/O Record Length . . . . . . . . : 0
Current Block Count. . . . . . . . . . : 0
PRINTER FEEDBACK:
Current Line Number. . . . . . . . . . : 1
Current Page . . . . . . . . . . . . . : 1
Major Return Code. . . . . . . . . . . : 00
Minor Return Code. . . . . . . . . . . : 00
Output Buffer:
0000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 * *
- I
- This is the file feedback section of the INFDS. Only fields applicable to the file type are printed. The rest of the INFDS feedback sections are not dumped, since they are only updated if they have been declared in the program.
- J
- This is the file open feedback information for the file. For a description of the fields, refer to the DB2® for i section of the Database and File Systems category in the IBM® i Information Center at this Web site - http://www.ibm.com/systems/i/infocenter/.
- K
- This is the common I/O feedback information for the file. For a description of the fields, see the above Web site.
Information with Full-Formatted Dump
Figure 3. Information Provided
for Full-Formatted Dump
Open Data Path:
0000 64800000 00001AF0 00001B00 000000B0 00000140 000001C6 00000280 000002C0 * 0 F *
0020 00000530 00000000 00000000 00000380 00000000 06000000 00000000 00000000 * *
0040 00008000 00000000 003AC02B A00119FF 000006C0 00003033 00000000 00000000 * *
0060 80000000 00000000 003AC005 CF001CB0 00000000 00000000 00000000 00000000 * *
0080 80000000 00000000 003AA024 D0060120 01900000 00010000 00000050 00000000 * & *
00A0 1F000000 00000000 00000000 00000000 E2D7D8E2 E8E2D7D9 E3404040 D8E2E8E2 * SPQSYSPRT QSYS*
00C0 40404040 4040D8F0 F4F0F7F9 D5F0F0F2 * Q04079N002QSPL & *
Open Feedback:
0000 E2D7D8E2 E8E2D7D9 E3404040 D8E2E8E2 40404040 4040D8F0 F4F0F7F9 D5F0F0F2 *SPQSYSPRT QSYS Q04079N002*
0020 D8E2D7D3 40404040 40400007 00500000 D8F5F0F1 F3F8F3F5 F2F50000 00000000 *QSPL & Q501383525 *
0040 00500002 00000000 42008400 00000000 0000D5A4 00100000 00000008 00000000 * & d Nu *
0060 00000000 00000000 00000100 3C000000 0005E000 5CD54040 40404040 40400001 * *N *
0080 00000000 00001300 00000000 00000000 00010001 5CD54040 40404040 40400000 * *N *
00A0 07100000 00000000 00450045 00450045 07A10045 00450045 00700045 00450045 * *
00C0 00450045 00450045 002F0030 00040005 5CD54040 40404040 40400208 00000000 * *N *
00E0 20000000 00000000 00000000 00000000 00000000 00000001 C2200000 00059A00 * B *
0100 00000000 00000000 00000000 00000000 00000000 4040 * *
Common I/O Feedback:
0000 00900000 00000000 00000000 00000000 00000000 00000000 00000000 00000208 * *
0020 5CD54040 40404040 40400000 00500000 00000000 00000000 00000000 00000000 **N & *
0040 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 * *
0060 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 * *
0080 00000000 00000000 00000000 00000000 * *
I/O Feedback for Device:
0000 00010000 00010000 00000000 00000000 00000000 00000000 00000000 00000000 * *
0020 0000F0F0 0001 * 0000 *
The common open data path and the feedback areas associated with the file are included in the dump if you respond to an ILE RPG inquiry message with an F option.
Data Information
Figure 4. Data section of
Formatted Dump
ILE RPG FORMATTED DUMP
Module Name. . . . . . . . . . . . . . : DBGEX2
Optimization Level . . . . . . . . . . : *NONE L M
Halt Indicators:
H1 '0' H2 '0' H3 '0' H4 '0' H5 '0' H6 '0' H7 '0' H8 '0' H9 '0'
Command/Function Key Indicators:
KA '0' KB '0' KC '0' KD '0' KE '0' KF '0' KG '0' KH '0' KI '0' KJ '0'
KK '0' KL '0' KM '0' KN '0' KP '0' KQ '0' KR '0' KS '0' KT '0' KU '0'
KV '0' KW '0' KX '0' KY '0'
Control Level Indicators:
L1 '0' L2 '0' L3 '0' L4 '0' L5 '0' L6 '0' L7 '0' L8 '0' L9 '0'
Overflow Indicators:
OA '0' OB '0' OC '0' OD '0' OE '0' OF '0' OG '0' OV '0'
External Indicators:
U1 '0' U2 '0' U3 '0' U4 '0' U5 '0' U6 '0' U7 '0' U8 '0'
General Indicators:
01 '0' 02 '1' 03 '0' 04 '1' 05 '0' 06 '1' 07 '0' 08 '0' 09 '0' 10 '0'
11 '0' 12 '0' 13 '0' 14 '0' 15 '0' 16 '0' 17 '0' 18 '0' 19 '0' 20 '0'
21 '0' 22 '0' 23 '0' 24 '0' 25 '0' 26 '0' 27 '0' 28 '0' 29 '0' 30 '0'
31 '0' 32 '0' 33 '0' 34 '0' 35 '0' 36 '0' 37 '0' 38 '0' 39 '0' 40 '0'
41 '0' 42 '0' 43 '0' 44 '0' 45 '0' 46 '0' 47 '0' 48 '0' 49 '0' 50 '0'
51 '0' 52 '0' 53 '0' 54 '0' 55 '0' 56 '0' 57 '0' 58 '0' 59 '0' 60 '0'
61 '0' 62 '0' 63 '0' 64 '0' 65 '0' 66 '0' 67 '0' 68 '0' 69 '0' 70 '0'
71 '0' 72 '0' 73 '0' 74 '0' 75 '0' 76 '0' 77 '0' 78 '0' 79 '0' 80 '0'
81 '0' 82 '0' 83 '0' 84 '0' 85 '0' 86 '0' 87 '0' 88 '0' 89 '0' 90 '0'
91 '0' 92 '0' 93 '0' 94 '0' 95 '0' 96 '0' 97 '0' 98 '0' 99 '0'
Internal Indicators:
LR '0' MR '0' RT '0' 1P '0'
N
NAME ATTRIBUTES VALUE
_QRNU_DSI_DS1 INT(10) 1 '00000001'X O
_QRNU_DSI_DS2 INT(10) 2 '00000002'X
_QRNU_NULL_ARR CHAR(1) DIM(8) P
(1-2) '1' 'F1'X
(3) '0' 'F0'X
(4) '1' 'F1'X
(5-6) '0' 'F0'X
(7) '1' 'F1'X
(8) '0' 'F0'X
_QRNU_NULL_FLDNULL CHAR(1) '1' 'F1'X
_QRNU_TABI_TABLEA INT(10) 1 '00000001'X Q
ARR CHAR(2) DIM(8)
(1-3) 'AB' 'C1C2'X
(4-7) ' ' '4040'X
(8) '1' 'F1'X
ARRY ZONED(3,2) DIM(2)
(1-2) 1.24 'F1F2F4'X
BASEONNULL CHAR(10) NOT ADDRESSABLE
BASEPTR POINTER SPP:E30095A62F001208
BASESTRING CHAR(6) 'ABCDEF' 'C1C2C3C4C5C6'X
BIGDATE DATE(10) '1994-09-30' 'F1F9F9F460F0F960F3F0'X
BIGTIME TIME(8) '12.00.00' 'F1F24BF0F04BF0F0'X
BIGTSTAMP TIMESTAMP(26) '9999-12-31-12.00.00.000000'
VALUE IN HEX 'F9F9F9F960F1F260F3F160F1F24BF0F04BF0F04BF0F0F0F0F0F0'X
BIN4D3 BIN(4,3) -4.321 'EF1F'X
BIN9D7 BIN(9,7) 98.7654321 '3ADE68B1'X
DBCSSTRING GRAPHIC(3) ' BBCCDD ' 'C2C2C3C3C4C4'X
DS1 DS OCCURS(3) R
OCCURRENCE(1)
FLD1 CHAR(5) '1BCDE' 'F1C2C3C4C5'X
FLD1A CHAR(1) DIM(5)
(1) '1' 'F1'X
(2) 'B' 'C2'X
(3) 'C' 'C3'X
(4) 'D' 'C4'X
(5) 'E' 'C5'X
FLD2 BIN(5,2) 123.45 '00003039'X
OCCURRENCE(2)
FLD1 CHAR(5) 'ABCDE' 'C1C2C3C4C5'X
FLD1A CHAR(1) DIM(5)
(1) 'A' 'C1'X
(2) 'B' 'C2'X
(3) 'C' 'C3'X
(4) 'D' 'C4'X
(5) 'E' 'C5'X
FLD2 BIN(5,2) 123.45 '00003039'X
OCCURRENCE(3)
FLD1 CHAR(5) 'ABCDE' 'C1C2C3C4C5'X
FLD1A CHAR(1) DIM(5)
(1) 'A' 'C1'X
(2) 'B' 'C2'X
(3) 'C' 'C3'X
(4) 'D' 'C4'X
(5) 'E' 'C5'X
FLD2 BIN(5,2) 123.45 '00003039'X
DS2 CHAR(1O) DIM(2) S
(1) 'aaaaaaaaaa' '81818181818181818181'X
(2) 'bbbbbbbbbb' '82828282828282828282'X
DS3 DS T
FIRSTNAME CHAR(10) 'Fred ' 'C6998584404040404040'X
LASTNAME CHAR(10) 'Jones ' 'D1969585A24040404040'X
TITLE CHAR(5) 'Mr. ' 'D4994B4040'X
EXPORTFLD CHAR(6) 'export' '85A7979699A3'X
FLDNULL ZONED(3,1) 24.3 'F2F4F3'X
FLOAT1 FLT(4) 1.234500000000E+007 U
VALUE IN HEX '4B3C5EA8'X
FLOAT2 FLT(8) 3.962745000000E+047
VALUE IN HEX '49D15A640A93FCFF'X
INT10 INT(10) -31904 'FFFF8360'X
INT5 INT(5) -2046 'F802'X
NEG_INF FLT(8) -HUGE_VAL V
VALUE IN HEX 'FFF0000000000000'X
NOT_NUM FLT(4) *NaN W
VALUE IN HEX '7FFFFFFF'X
NULLPTR POINTER SYP:*NULL
PACKED1D0 PACKED(5,2) -093.40 '09340D'X
PARM1 PACKED(4,3) 6.666 '06666F'X
POS_INF FLT(8) HUGE_VAL X
VALUE IN HEX '7FF0000000000000'X
PROCPTR POINTER PRP:A00CA02EC200 Y
SPCPTR POINTER SPP:A026FA0100C0
SPCSIZ BIN(9,0) 000000008. '00000008'X
STRING CHAR(6) 'ABCDEF' 'C1C2C3C4C5C6'X
TABLEA CHAR(3) DIM(3)
(1) 'aaa' '818181'X
(2) 'bbb' '828282'X
(3) 'ccc' '838383'X
UNSIGNED10 UNS(10) 31904 '00007CA0'X
UNSIGNED5 UNS(5) 2046 '07FE'X
ZONEDD3D2 ZONED(3,2) -3.21 'F3F2D1'X
Local variables for subprocedure SWITCH: Z
NAME ATTRIBUTES VALUE
_QRNL_PSTR_PARM POINTER SYP:*NULL
LOCAL CHAR(5) ' ' '0000000000'X
PARM CHAR(1) NOT ADDRESSABLE
* * * * * E N D O F R P G D U M P * * * * *
- L
- Optimization level
- M
- General indicators 1-99 and their current status ('1' is on, '0' is off). Note that indicators *IN02, *IN04, and *IN06 were not yet set.
- N
- Beginning of user variables, listed in alphabetical order, and grouped by procedure. Data that is local to a subprocedure is stored in automatic storage and is not available unless the subprocedure is active. Note that the hexadecimal values of all variables are displayed. :nt Names longer than 131 characters, will appear in the dump listing split across multiple lines. The entire name will be printed with the characters '...' at the end of the lines. If the final portion of the name is longer than 21 characters, the attributes and values will be listed starting on the following line.
- O
- Internally defined fields which contain indexes multiple-occurrence data structures.
- P
- Internally defined fields which contain the null indicators for null-capable fields.
- Q
- Internally defined fields which contain indexes for tables.
- R
- Multiple-occurrence data structure.
- S
- Data structures with no subfields are displayed as character strings.
- T
- Data structure subfields are listed in alphabetical order, not in the order in which they are defined. Gaps in the subfield definitions are not shown.
- U
- 4-byte and 8-byte float fields.
- V
- Indicates negative infinity.
- W
- Stands for 'not a number' indicating that the value is not a valid floating-point number.
- X
- Indicates positive infinity.
- Y
- The attribute does not differentiate between basing and procedure pointer.
- Z
- The local data inside subprocedures is listed separately from the main source section.