RCLRSC -------
2 posters
Page 1 of 1
Re: RCLRSC -------
This is a command which is used to realease the static storage consumed when set of programs called.
_________________
Regards,
Razuk.
_________________
Regards,
Razuk.
Re: RCLRSC -------
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.
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.
Re: RCLRSC -------
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
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
Re: RCLRSC -------
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
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|