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

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

Join the forum, it's quick and easy

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

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

RCLRSC -------

2 posters

Go down

RCLRSC ------- Empty RCLRSC -------

Post  maran Mon Jul 27, 2009 7:49 pm

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

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

RCLRSC ------- Empty Re: RCLRSC -------

Post  maran 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.
maran
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

RCLRSC ------- Empty Re: RCLRSC -------

Post  maran 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.
maran
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

RCLRSC ------- Empty Re: RCLRSC -------

Post  maran 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
maran
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

RCLRSC ------- Empty Re: RCLRSC -------

Post  muthuraman 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

Back to top Go down

RCLRSC ------- Empty Re: RCLRSC -------

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


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