Using the DUMP Operation Code

Chapter 13. Obtaining a Dump

This chapter describes how to obtain an ILE RPG formatted dump and sample formatted dump.

Obtaining an ILE RPG Formatted Dump

To

obtain an ILE RPG

formatted dump

(printout

of

storage) for a pro

is

running,

you

can:

 

 

 

 

¹

Code one

or

more

DUMP operation

codes in

the

calculation specific

¹Respond to a run-time message with a D or F option. It is also automatically reply to make a dump available. Refer to the “System

discussion in CLtheProgramming

manual.

The formatted dump includes field contents, data structure contents, contents, the file information data structures, and the program status The dump is written to the file called QPPGMDMP. (A system abnormal du written to the file QPSRVDMP.)

If you respond to an ILE RPG run-time message with an F option, the includes the hexadecimal representation of the open data path (ODP, agement control block).

The dump information includes the global data associated with

the

m

Depending

on

whether

the

main procedure is active, the global

data

 

sent

the

values

assigned

during

processing

of

the

*INZSR.

If

a prog

more

than

one

procedure,

the information in the formatted

dump

also

r

mation

aboutevery procedure

that

is active

at

the

time

of

the

dump

 

procedure

is

not

active,

the

values of

variables

in automatic

storag

valid.

If

a

procedure

has not been called yet,

the

static

storag

yet. If a procedure has been called recursively, only

the

informat

recent invocation

will

be

shown.

 

 

 

 

 

 

 

 

Note: To obtain a dump of variable data, the program object must ha data. That is, it must be created with any debug view excep debug data is available, then the dump will still contain the PS information.

Using the DUMP Operation Code

You can code one or more DUMP operation codes in the calculations o source to obtain a ILE RPG formatted dump. A new QPPGMDMP spool file created whenever the DUMP operation occurs.

Note the following about the DUMP operation:

¹

The

DUMP

operation runs

(is

active) only

if

keyword DEBUG(*YES)

is

 

on the control specification. If the keyword is not specified,

 

specified, the DUMP operation is checked

for errors

and

the

sta

 

printed

on the

listing,

but

the DUMP is not processed.

 

 

¹

If

the

DUMP

operation

is

conditioned,

it

occurs only

if

the

cond

Copyright IBM Corp. 1994, 1999

251

Page 275
Image 275
IBM AS/400 manual Obtaining a Dump, Obtaining an ILE RPG Formatted Dump, Using the Dump Operation Code, 251

AS/400 specifications

The IBM AS/400, now known as the IBM iSeries, is a midrange computer system that has been a cornerstone of enterprise computing since its introduction in 1988. Designed to provide a robust platform for business applications, the AS/400 is celebrated for its reliability, scalability, and integrated database capabilities.

One of the key features of the AS/400 is its Integrated Operating Environment, which blends hardware and software resources seamlessly. This integration allows businesses to execute diverse workloads, ranging from traditional applications to modern web-based services, all on a single platform. The operating system, OS/400 (now IBM i), offers a rich set of APIs and tools for developers, simplifying application development and management.

Another standout characteristic of the AS/400 is its built-in database, DB2 for i. This powerful relational database management system allows for efficient data handling and provides advanced features such as support for SQL, XML, and JSON, making it easier for businesses to manage their data and integrate it with other systems. The database's tight integration with the operating system enables high performance and security.

In terms of scalability, the AS/400 can accommodate small businesses as well as large enterprises, with the ability to support hundreds of users simultaneously. Its architecture allows for easy upgrades in hardware, meaning that organizations can scale their systems without replacing the entire infrastructure.

Security is another critical attribute of the AS/400. With a sophisticated security model, it offers built-in user authentication, access control, encryption, and auditing capabilities to protect data and applications from unauthorized access.

The AS/400 also supports multiple programming languages, including RPG, COBOL, Java, and PHP, giving organizations the flexibility to choose the development tools that best fit their needs. This diversity helps maintain legacy applications while also developing new ones that leverage modern technologies.

Moreover, the platform supports both traditional green-screen interfaces and modern graphical user interfaces, allowing organizations to transition smoothly into contemporary user experience paradigms.

Overall, the IBM AS/400 stands out as a resilient, flexible, and secure computing platform that enables organizations to effectively manage their business operations, streamline processes, and adapt to changing market demands. Its unique combination of integrated features and capabilities ensures that it remains relevant in today's fast-paced technology landscape.