Stepping Through the Program Object

Example

of

Stepping

Into

an

OPM

Program

Using

F22

 

 

 

In this example, you use

the

F22

(Step

Into) to step

into the OPM

RPGPGM

from

the

program

DEBUGEX.

 

 

 

 

 

1. Ensure

that

the Display Module Source display shows the source f

2. To

set

an

unconditional

breakpoint

at

line 102,

which

is the last

ment

before

the

CALL

operation,Break type102 and press

Enter.

 

3. Press F3 (End program) to leave the Display Module Source display.

4. Call the program. The program stops at breakpoint 102, as shown in

ˆ

 

 

Display Module

Source

 

Program:

DEBUGEX

Library:

MYLIB

Module:

DBGEX

98* Fld1a is an overlay field of Fld1. Since Fld1 is initialized

99* to 'ABCDE', the value of Fld1a(1) is 'A'. After the

100* following MOVE operation, the value of Fld1a(1) is '1'.

101*---------------------------------------------------------------

102

C

MOVE

'1'

Fld1a(1)

103

 

 

 

 

104*---------------------------------------------------------------

105* Call the program RPGPGM, which is a separate program obje￿ct.

106*---------------------------------------------------------------

107

C

Plist1

PLIST

 

 

108

C

 

PARM

 

PARM1

109

C

 

CALL

'RPGPGM'

Plist1

110

 

 

 

 

 

111*---------------------------------------------------------------

112* Call c_proc, which imports ExportFld from the main proced￿ure.

More...

Debug . . . _________________________________________________________________

_______________________________________________________________________________

F3=End program

F6=Add/Clear breakpoint

F10=Step

F11=Display variable

F12=Resume

 

F17=Watch variable

F18=Work with

watch

F24=More keys

Breakpoint

at line 102.

 

 

 

 

˜

Figure 93. Display Module Source display of DBGEX Before Stepping Into RPGPGM

5. Press F22 (Step into). One statement of the program runs, and then Display Module Source display of RPGPGM is shown, as in Figure 94 on page 198.

In

this

case,

the first

runnable

statement

of RPGPGM is processed

and

then

the program

stops.

 

 

Note:

You

cannot

specify the number of statements to step through

 

use

F22.

Pressing

F22

performs

a single

step.

Chapter 11. Debugging Programs197

Page 221
Image 221
IBM AS/400 manual This example, you use F22 Step Into to step Into the OPM, From Program, Debugex

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.