IBM AS/400 Frozen Dessert Maker User Manual


 
Managing Activation Groups
where
sequence-no
is a number from 1-9999, which reflects where in the list the
entry is being added, and
message-id
is 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 indicate
that your job uses the reply list for inquiry messages. To do this, you should specify
*SYSRPYL for the Inquiry Message Reply (INQMSGRPY) attribute.
The reply list is only used when an inquiry message is sent by a job that has the
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 to
change or remove entries in the system reply list. See the
CL Reference (Abridged)
for details of the ADDRPYLE and WRKRPYLE commands.
Ending an ILE Program
When an ILE program ends normally, the system returns control to the caller. The
caller could be a workstation user or another program (such as the menu-handling
program).
If an ILE program ends abnormally and the program was running in a different acti-
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 Message
(MONMSG) command. You can also monitor for exceptions in other ILE languages.
If the ILE program is running in the same activation group as its caller and it ends
abnormally, then the message issued will depend on why the program ends. If it
ends with a function check, then CPF9999 will be issued. If the exception is issued
by an RPG procedure, then it will have a message prefix of RNX.
For more information on exception messages, see “Exception Handling Overview”
on page 217.
Managing Activation Groups
An activation group is a substructure of a job and consists of system resources
(for example, storage, commitment definitions, and open files) that are allocated to
run one or more ILE or OPM programs. Activation groups make it possible for ILE
programs running in the same job to run independently without intruding on each
other (for example, commitment control and overrides). The basic idea is that all
Chapter 9. Running a Program 109