Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
what is cancel statement in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
naveen9

New User


Joined: 09 Mar 2005
Posts: 3
Location: bangalore

PostPosted: Wed Mar 09, 2005 7:24 pm    Post subject: what is cancel statement in cobol
Reply with quote

:roll:
Back to top
View user's profile Send private message
References
sunnyk

Active User


Joined: 20 Oct 2004
Posts: 59

PostPosted: Wed Mar 09, 2005 7:36 pm    Post subject:
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1508

PostPosted: Sun Mar 13, 2005 7:22 am    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1