IBM AS/400 manual Ending an ILE Program, Groups, Managing Activation

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 133
Image 133
Groups

 

 

 

 

 

 

 

Managing Activation

Groups

 

wheresequence-no

is

a number from

1-9999,

which reflects where in

the

entry

is

being

addmessaged, and-idis the message number you want to

add.

Repeat this

command

for

each message

you want

to add.

 

Use

the

Change

Job (CHGJOB) command (or other

CL job command) to in

that

your

job

uses the reply list for inquiry messages. To do this

*SYSRPYL

for

the

Inquiry

Message

Reply

(INQMSGRPY)

attribute.

 

The reply list is only used when an inquiry message is sent by a j Inquiry Message Reply (INQMSGRPY) attribute specified as INQMSGRPY(*SYSRPYL). The INQMSGRPY parameter occurs on the following

CL commands:

¹Change Job (CHGJOB)

¹ Change Job Description (CHGJOBD)

¹ Create Job Description (CRTJOBD)

¹Submit Job (SBMJOB).

You can also use the Work

with Reply

List Entry (WRKRPYLE) command t

change or remove

entries in

the system replyCL Referencelist. See(Abridged)the

for details of

the ADDRPYLE

and WRKRPYLE

commands.

Ending an ILE Program

When an ILE program ends normally,

the

system returns control to the c

caller could be a workstation user or

another

program

(such as the

program).

 

 

 

 

If an ILE program ends abnormally

and

the program was running in a di

vation group than its caller, then

the

escape

message

CEE9901

Error message-id caused program to end.

is issued and control is returned to the caller.

A CL program can monitor

for this exception by using

the Monitor

Messa

(MONMSG) command.

You

can

also monitor for exceptions in

other

ILE

langua

If the ILE

program

is

running in the same activation

group

as

its c

abnormally,

then the

message

issued will

depend

on why the program e

ends with

a function

check,

then

CPF9999

will

be

issued.

If the

exce

by

an RPG procedure,

then it will have a message prefix of RNX.

For

more

information

on

exception

messages,

see

“Exception

Handling

Overv

on

page 217.

 

 

 

 

 

 

 

 

 

Managing Activation

Groups

 

 

 

 

 

 

 

 

 

 

An

activation

group

is

a

substructure

of a job and consists of

system

(for

example,

storage,

commitment definitions, and open

files)

that are

run one or more ILE or OPM programs.

Activation groups

make

it

possible

programs

running

in the same job to

run independently

without

intruding

other

(for example,

commitment control

and overrides).

The

basic

idea

Chapter 9. Running a Program109

Page 133
Image 133
IBM AS/400 manual Ending an ILE Program, Groups, Managing Activation