IBM AS/400 Reclaim Resources Command, Deleting an Activation, Managing Activation Groups

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 136
Image 136

Managing Activation Groups

Deleting an Activation

 

Group

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When an activation group is

deleted, its resources are reclaimed. The

include static storage and open files.

 

A

*NEW

activation group

is

delet

program it is associated with returns

to

its

caller.

 

 

 

 

Named

 

activation

groups

(such

as persistentQILE) areactivation

groups

in

that

 

they are not deleted unless explicitly deleted or unless the job end

associated with programs running in named

activation

groups

is

not

releas

these

activation

 

groups

 

are

deleted.

 

 

 

 

 

 

 

 

 

 

 

An ILE

RPG

program

created DFTACTGRP(*YES)

will

have

its storage

released

when

it

ends

with LR

on

or

abnormally.

 

 

 

 

 

 

 

 

 

 

 

Note:

 

The

storage

associated

with ILE programs running in the default a

 

 

group

via

*CALLER

is

 

not

released until you sign off (for

an

inter

 

 

or

until

the

job

ends

(for a batch job).

 

 

 

 

 

 

If many ILE RPG programs are activated

(that

is

called

at

 

least once

storage

may

be

exhausted.

Therefore, you should avoid having ILE pro

use

large

amounts

of

static

storage run

in

the

OPM

default

activation

the

storage

will

not

be

reclaimed until

 

the

job

ends.

 

 

 

 

The storage associated with a service program is reclaimed only when vation group it is associated with ends. If the service program is default activation group, its resources are reclaimed when the job en

You can delete a named

activation

group

using the RCLACTGRP command. Use

this

command

to

delete

a

nondefault activation

group that is not in use

command provides

options

to

either

delete

all

eligible activation groups

an activation

group

by

name.

 

 

 

 

For

more information

on

RCLACTGRP

refer CLtoReftherence (Abridged). For

more

information

on

the

RCLACTGRP

and

activation

groups,ILE refConcerpts.to

Reclaim Resources Command

The

Reclaim Resources (RCLRSC) command is

designed to free the resourc

programs

that

are no

longer

active.

The

command

works

differently

depen

how

the

program

was

created.

If

the

program

is

an

OPM program

or wa

with

DFTACTGRP(*YES),

then

the

RCLRSC

command

will close

open files and

 

free static

storage.

 

 

 

 

 

 

 

 

For ILE programs or service programs that were activated into the OPM activation group because they were created with *CALLER, files will be when the RCLRSC command is issued. For programs, the storage will be re initialized; however, the storage will not be released. For service pr storage will neither be re-initialized nor released.

Note: This

means that if you have

a

service

program

that

ran

in

the

vation

group

and

left

files

open

(returning with

LR

off),

and a

issued,

when

you

call

the service program again, the

files

will s

be open,

so

so

any

I/O operations will

result

in

an

error.

 

For ILE programs associated with a named activation group, the RCLRSC command has no effect. You must use the RCLACTGRP command to free resources in a named activation group.

112 ILE RPG for AS/400 Programmer's Guide

Page 136
Image 136
IBM AS/400 manual Reclaim Resources Command, Deleting an Activation, Managing Activation Groups