PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

RCLRSC -------

View previous topic View next topic Go down

RCLRSC -------

Post  maran on Mon Jul 27, 2009 7:49 pm

When do we go for RCLRSC???
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: RCLRSC -------

Post  maran on Mon Jul 27, 2009 7:50 pm

This is a command which is used to realease the static storage consumed when set of programs called.
_________________
Regards,
Razuk.
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: RCLRSC -------

Post  maran on Mon Jul 27, 2009 7:50 pm

Reclaim resource is used, when the calling program pgmb ,control returns to called program pgma and resource can be used by calling program pgmc.

Reclaim resources is not needed in CL program that ends in RETRN and in RPG program that ends with LR indicator on.
_________________
Thanks & Regards,
Anupama M.
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: RCLRSC -------

Post  maran on Mon Jul 27, 2009 7:51 pm

Razuk is correct.

More to add RCLRSC not only to realease the static storage consumed by the programs also it closes all the open files.

When do we go for?

If program ends without SETON LR using RETRN on SETON RT the program will not be removed from the call stack. Instaed it will be in suspended state. That time all the static variables will not be deallcocated and all open files will remain open.

To reclaim these resources( static var & open files ) we do RCLRSC in the CL program after CALL to HLL program


PGM

CALL PGMA
CALL PGMB

RCLRSC

. . .

ENDPGM

Note: PGMA & PGMB ends without seton lr
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

Re: RCLRSC -------

Post  muthuraman on Tue Sep 22, 2009 7:51 pm

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.

muthuraman

Posts : 42
Join date : 2009-08-28

View user profile

Back to top Go down

Re: RCLRSC -------

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum