Setting

and

Removing

Breakpoints

 

 

 

The current

thread

is

the

thread

that

is

currently

being

debugged.

De

mands

are

issued

to this

thread.

When

a

debug

stop

occurs,

such

the

 

current

thread

is

set to

the

thread

where

 

the

debug

stop

ha

THREAD

command

and the 'Work with Debugged Threads' display can

be

us

change

the

current

thread.

 

 

 

 

 

 

 

 

 

 

To

remove

an

unconditional thread breakpoint use the

CLEAR

debug

command

When a thread breakpoint is cleared,

it

is

cleared for the

curren

Setting and Removing

Conditional

Job

Breakpoints

 

 

 

 

 

 

 

 

 

 

 

You

 

can

set

or

remove

a

conditional

job breakpoint

by

using:

 

 

¹ The

Work

with

Module

Breakpoints display

 

 

 

 

 

 

 

¹ The BREAK debug command to set a job breakpoint

¹The CLEAR debug command to remove a breakpoint

Note:

The relational operators supported for

conditional<,

breakpoints>,=,

are

 

<=, >=, and<> (not equal).

 

 

 

 

 

One

way you can set or remove conditional

job

breakpoints

is through

with

Module Breakpoints display. You access

the

Work

with

Module

Brea

display from the Display Module Source display by pressing F13 (Work

breakpoints). The display provides

you

with a list of options which

either add

or

remove

conditional

and

unconditional job breakpoints. An

the display

is

shown

in Figure 82

on

page 182.

To make the job breakpoint conditional, specify a conditiConnal- expressi dition field. If the line on which you want to set a job breakpoint statement, the breakpoint will be set at the next runnable statement.

If

a thread

column

is

shown,

before pressing Enter,Threadtypefield*JOB. in

 

Once

you

have

finished

specifying

 

all

of

the

job

breakpoints,

you

 

You

can

use F21 (Command

Line)

from

 

the

Display

Module

Source

display

 

the program object from a command

line

or

call

the

program

after

ex

 

display.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When a statement with a conditional job breakpoint is reached, the

 

expression associated

with the

job

breakpoint

is

evaluated

before

 

run.

If the result is false,

the

 

program object continues to run.

 

the program object stops, and

the

 

Display

Module

Source display

 

is

 

point, you can evaluate fields,

set

more

breakpoints,

and

run

any

of

 

commands.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

An alternate method of setting

and

removing

conditional

 

breakpoints

is t

 

BREAK

and

CLEAR

debug

commands.

 

 

 

 

 

 

 

 

 

 

 

 

 

To set a conditional breakpoint using the BREAK debug command, type:

BREAK line-number WHEN expression

on the debug command line. Thelinevariable-numberis the line number in the currently displayed view of the module object on which you want to and expression is the conditional expression that is evaluated when the

Chapter 11. Debugging Programs181

Page 205
Image 205
IBM AS/400 manual Job, Breakpoints

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.