My pleasure kind sir. I only wish my memory was as good as it used to be!

On 2013-07-03, at 4:53 PM, MichaelQuigley@xxxxxxxxxx wrote:


Thanks! You always amaze me--especially when I consider you don't do much
COBOL anymore. you're help is very much appreciated.

Michael Quigley
Computer Services
The Way International

cobol400-l-bounces@xxxxxxxxxxxx wrote on 07/03/2013 01:00:10 PM:

----- Message from Jon Paris <> on Wed, 3
Jul 2013 08:34:17 -0400 -----


"COBOL Programming on the IBM i \(AS/400 and iSeries\)" <cobol400-


Re: [COBOL400-L] COBOL for RPG programmers: How do you shut down a

Cancel would work Michael - as long as the advice in the manual for
using a variable is followed.

i.e. Move 'MYPROG' to ProgName.
Cancel ProgName. <-- This works

Cancel 'MYPROG'. <-- This doesn't.

The reason the first one works is that the program pointer is
cleared as well as the program's reset mechanism being invoked. The
second simply resets the program - which is rather like what happens
in ILE RPG when you set on LR i.e. the program is flagged to reset
on next call.

This is all ILE to ILE.

Cancel will _not_ work OPM to ILE or vice versa.

Cancel OPM to OPM is implemented differently to ILE but the same
approach should work.

On 2013-07-01, at 8:58 PM, MichaelQuigley@xxxxxxxxxx wrote:


Does a CANCEL statement in the calling program simply set the same
object for re-activation? i.e., Will the next call after a CANCEL use
same pointer with all storage in its initial state or will the pointer
the program object also be resolved again?
This is the COBOL Programming on the IBM i (AS/400 and iSeries) (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

Jon Paris

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.