cancel statement in cobol.

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Post Reply
Ashish Mathew
Registered Member
Posts: 50
Joined: Thu Jun 27, 2013 6:17 pm

cancel statement in cobol.

Post by Ashish Mathew »

What is cancel statement in cobol? What does it do? When do we use it?
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: cancel statement in cobol.

Post by William Collins »

If using dynamic CALL, for the first CALL for a given module, that module is loaded into memory. CANCEL for that same program name will remove it from memory.

It is not very likely you will need to use it.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1886
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: cancel statement in cobol.

Post by Robert Sample »

Ashish Mathew, your question is one of those that is precisely (and completely) answered in the Enterprise COBOL Language Definition manual, which IBM provides online for free at http://www-01.ibm.com/support/docview.w ... wg27036733 . I strongly recommend you take the time to learn how to use the manual to answer this type of question, as you will be more valuable to an employer if you can answer your own questions rather than relying upon someone else (such as a forum) to provide you the answer.
Ashish Mathew
Registered Member
Posts: 50
Joined: Thu Jun 27, 2013 6:17 pm

Re: cancel statement in cobol.

Post by Ashish Mathew »

Robert Sample wrote:Ashish Mathew, your question is one of those that is precisely (and completely) answered in the Enterprise COBOL Language Definition manual, which IBM provides online for free at http://www-01.ibm.com/support/docview.w ... wg27036733 . I strongly recommend you take the time to learn how to use the manual to answer this type of question, as you will be more valuable to an employer if you can answer your own questions rather than relying upon someone else (such as a forum) to provide you the answer.
Thanks! Manuals are source of information for sure and I am leaning this ...
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”