|
|
| Author |
Message |
naveen9
New User
Joined: 09 Mar 2005 Posts: 3 Location: bangalore
|
|
|
|
| :roll: |
|
| Back to top |
|
 |
References
|
Posted: Wed Mar 09, 2005 7:24 pm Post subject: Re: what is cancel statement in cobol |
 |
|
|
 |
sunnyk
Active User
Joined: 20 Oct 2004 Posts: 59
|
|
|
|
Hi,
The CANCEL command is used when you are calling a subprogram dynamically.When u issue cancel command after a dynamic call to subprogram,it will refresh or reset all the parameters that got updated in subprogram.
Regds
sunny |
|
| Back to top |
|
 |
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1481
|
|
|
|
As Sunnyk stated these things seem to happen and from one perspective it's not "wrong" to think that.
But what actually happens is that the current version of the CALLed pgm is CANCELed, that is, it's no longer active. The memory originally allocated to that version is freed and becomes available to the next requestor and the next CALL of that pgm is loaded from disk and must compete for task memory (which may or may not be available then).
Because of this load all Working storage appears to be reinitialized. In fact the pgm is reloaded with its original WS contents. |
|
| Back to top |
|
 |
|
|