IBM AS/400 manual Example of Setting a Conditional Job Breakpoint Using F13, Line

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 206
Image 206
Example of Setting a Conditional Job Breakpoint Using F13

Setting and Removing Breakpoints

is encountered. The relational operators supported for conditional break noted at the beginning of this section.

In

non-numeric

conditional breakpoint expressions,

the

shorter expression

i

itly

padded

with blanks before the

comparison is

made. This

implicit

p

before

any

National Language Sort Sequence (NLSS) translation. See “National

 

Language

Sort

Sequence (NLSS)” on page

183 for

more

information

on NLSS.

 

To remove a conditional breakpoint using the CLEAR debug command, type:

CLEAR line-number

on the debug command line. Thelinevariable-numberis the line number in the currently displayed view of the module object from which you want to breakpoint.

Example of Setting a Conditional Job Breakpoint Using F13

In this example you set a conditional job breakpoint using F13 (Work breakpoints).

1. To

set

a conditional

job breakpoint press F13 (Work with module br

The

Work

with Module

Breakpoints display is shown.

2.On this display type 1 (Add) on the first line of the list to a breakpoint.

 

3. To set

a

conditional breakpoint at line 127 when *IN02='1', type 12

 

Line

field,

*IN02='1' Conditionfor thefield.

4. If

a

thread column is shown, before pressing Enter, type *JOB in

field.

 

 

 

Figure 82 shows the Work with Module Breakpoints display after adding

 

conditional

breakpoint.

 

 

Work with Module Breakpoints

System:

TORASD80

 

 

 

 

Program

. . . :

DEBUGEX

Library . . . :

MYLIB

 

Module . . . :

DBGEX

Type . . . . . :

*PGM

 

Type options, press Enter.

 

 

 

1=Add

4=Clear

 

 

 

 

Opt

Line

Condition

 

 

 

127*in02='1'

Bottom

Command

===> ________________________________________________________________________

F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel

ˆBreakpoint added to line 127.

˜

Figure

82.

Setting a Conditional Job Breakpoint

 

 

 

 

 

 

 

 

A conditional job breakpoint is set

on

line

127.

The

expression

is

before

the

statement

is

run.

If

the

result

is

true (in

the

exa

the

program

stops,

and

the

Display

Module

Source

display is

shown.

result

is false,

the

program

continues

to

run.

 

 

 

 

 

An

existing

breakpoint

is

always

replaced by

a

new

breakpoint

enter

same

location.

 

 

 

 

 

 

 

 

 

 

 

 

 

182 ILE RPG for AS/400 Programmer's Guide

Page 206
Image 206
IBM AS/400 manual Example of Setting a Conditional Job Breakpoint Using F13, Setting and Removing Breakpoints, Line