IBM AS/400 Creating a Program for Source Debugging, Using the CRTBNDRPG Command, Considerations

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 83
Image 83
Considerations

Using the CRTBNDRPG Command

Table

5 (Page 2 of 2). CRTBNDRPG Parameters and Their Default Values Grouped by Function

 

 

 

 

 

 

 

 

 

ALWNULL(*NO)

Determines

if the program will

accept

values from

null-capabl

 

 

fields

 

 

 

 

 

 

 

 

 

 

 

 

FIXNBR(*NONE)

Determines

which decimal data

that is

not valid

is to be

 

 

the compiler

 

 

 

 

 

 

 

 

 

 

Run-Time

Considerations

 

 

 

 

 

 

 

 

 

 

DFTACTGRP(*YES)

Identifies whether this program always runs in

the OPM de

 

 

activation

group

 

 

 

 

 

 

 

 

OPTION(*DEBUGIO)

*DEBUGIO/*NODEBUGIO, determines if breakpoints are

gener-

 

 

ated for input and output specifications

 

 

 

 

 

 

ACTGRP(QILE)

Identifies the activation group in which the

program should

 

 

 

 

 

 

SRTSEQ(*HEX)

Specifies

the sort sequence table to be used

 

 

 

 

 

 

LANGID(*JOBRUN)

Used with SRTSEQ to specify the language identifier for s

 

 

sequence

 

 

 

 

 

 

 

 

 

 

TRUNCNBR(*YES)

Specifies

the action to take when numeric overflow occurs

 

 

packed-decimal, zoned-decimal, and binary fields in fixed-fo

 

 

operations.

 

 

 

 

 

 

 

 

 

 

 

See

Appendix C, “The Create Commands” on page 405 for the syntax diagra

and

parameter descriptions of CRTBNDRPG.

Creating a Program for Source Debugging

In this example you create the program EMPRPT so that you can debug the source debugger. The DBGVIEW parameter on either CRTBNDRPG or

CRTRPGMOD determines what type of debug

data

is

created during comp

The parameter provides six options which

allow

you

to select which v

want:

 

 

 

¹*STMT — allows you to display variables and set breakpoints at stat

locations using a compiler listing. No source is displayed with this

¹

*SOURCE

— creates

a view identical to your input source.

¹ *COPY

creates

a

source

view

and

a

view containing the source o

 

/COPY

members.

 

 

 

 

 

 

¹

*LIST

creates

a

view similar

to

the

compiler listing.

¹

*ALL —

 

creates

all

of the

above views.

¹*NONE — no debug data is created.

The source for EMPRPT is shown in Figure 28 on page 54.

1. To create the object type:

CRTBNDRPG PGM(MYLIB/EMPRPT) DBGVIEW(*SOURCE) DFTACTGRP(*NO)

The program will be created

in the library MYLIB with the same

source

member

on which

it is

based, namely, EMPRPT. Note that by

will

run

in

the

default

named

activation group, QILE. This program o

be

debugged

using a

source

view.

2. To

debug

the

program

type:

 

STRDBG EMPRPT

Chapter 6. Creating a Program with the CRTBNDRPG Command59

Page 83
Image 83
IBM AS/400 manual Creating a Program for Source Debugging, Using the CRTBNDRPG Command, Considerations