IBM AS/400 Example of Removing ILE Programs from a Debug Session, Example of Adding a, Service

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 197
Image 197
Adding/Removing Programs from a Debug Session

Adding/Removing Programs from a Debug Session

Example of Adding a

Service

Program

to

a Debug

Session

 

 

 

 

 

 

 

 

 

 

 

In

this

example

you

add the service program CVTTOHEX

to

the

debug

which already previously started. (See “Sample Service Program” on pag

discussion

of

the

service

program).

 

 

 

 

 

 

 

 

 

 

 

1. If

 

the

current notdisplaythe

Display

Module

Source

display,

type:

 

DSPMODSRC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The

Display Module

Source

display

appears.

 

 

 

 

 

 

 

2.

Press

F14

(Work

with

module

list)

 

to

show

the

Work

with Module

Li

shown

 

in

Figure 76.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3.

To

add

service

program

CVTTOHEX,

on

the

first

line

of1

the

display

(Add

program),CVTTOHEX

for

theProgram/module field,MYLIB

for

Librarythe

 

 

field.

Change

the

default program

type

from

*PGM

to

*SRVPGM

and

pre

Enter.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4.

Press

F12

(Cancel)

to

return

to

the

Display

Module

Source

display.

ˆ

 

 

 

 

 

Work with Module List

System:

AS400S1

Type options, press enter.

 

 

 

 

 

 

 

 

1=Add program

4=Remove program

5=Display module source

 

 

 

8=Work with module breakpoints

 

 

 

 

Opt

Program/module

Library

Type

 

 

1

 

cvttohex

 

mylib

*SRVPGM

 

 

 

 

 

RPGPGM

 

MYLIB

 

*PGM

 

 

 

 

 

DEBUGEX

 

MYLIB

 

*PGM

 

 

 

 

 

DBGEX

 

 

 

*MODULE

Selected

 

 

 

 

CPROC

 

 

 

*MODULE

 

Bottom

 

 

 

 

 

 

 

 

 

Command

===> ________________________________________________________________________

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

˜

Figure 76. Adding an ILE Service Program to a Debug Session

Example of Removing ILE Programs from a Debug Session

In this example you remove the ILE program CVTHEXPGM and the service program CVTTOHEX from a debug session.

1. If the current notdisplaythe Display Module Source display, type:

DSPMODSRC

 

 

 

The

Display

Module

Source display

appears.

2. Press F14

(Work

with module list)

to show the Work with Module Li

shown

in Figure 77

on page 174.

 

3.On this display4 (Removetype program) on the line next to CVTHEXPGM and CVTTOHEX, and press Enter.

4.Press F12 (Cancel) to return to the Display Module Source display.

Chapter 11. Debugging Programs173

Page 197
Image 197
IBM AS/400 manual Example of Removing ILE Programs from a Debug Session, Example of Adding a, Service