|
----- Message from Jeff Buening <JeffBuening@xxxxxxxxxxxxxxxxxxx> oncorrect
Tue, 3 Nov 2009 10:37:35 -0500 -----
To:
cobol400-l@xxxxxxxxxxxx
Subject:
Re: [COBOL400-L] DFTACTGRP(*YES) vs ACTGRP(*Caller)
Below is out of the ILE V5R3 manual about preserving Run Unit in a Mixed
OPM ILE Cobol App. I make comments after each point, is my logic
or am I missing something since these manuals can be confusing :).the
Take in consideration I am using example of ProgA (OPM) calls ProgB(OPM)
calls ProgC(ILE)(ACTGRP(*CALLER))
Preserving OPM-compatible Run Unit Semantics in a Mixed OPM COBOL/400
and ILE COBOL Application: :
1 OPM COBOL/400 program?s invocation (not ILE COBOL?s) must be the first
COBOL invocation
--------So OPM in my example is the first COBOL invocation
2 STOP RUN is issued by an OPM COBOL/400 program
--------So my ILE program shouldn't have STOP RUN in it
3 All participating programs in the (OPM COBOL/400) run unit must run in
the
*DFTACTGRP activation group.
--------So using ACTGRP (*CALLER) on the ILE program will keep all in
*DFTACTGRPsemantics
If the above conditions are not met, the OPM-compatible run unit
is notOPM
preserved for OPM/ILE mixed application. For example, if an ILE COBOL
program is running in the *DFTACTGRP and it issues a STOP RUN, both the
COBOL/400 and ILE COBOL programs will be left in their last used state.ACTGRP
--------So If I don't have STOP RUN in the ILE program that is using
(*CALLER) should be finePROGRAM,
In ILE COBOL, the flow of control operations, CALL, CANCEL, EXIT
STOP RUN, and GOBACK, will cause the run unit to behave differentlyunless
anthe
OPM-compatible run unit is used.
-------This last statement is confusing, but I am thinking if I follow
3 points above my example is OPM-compatible run unit so GOBACK CALL EXIT
PROGRAM etc... should work fine except don't use STOP RUN in the ILE
program that is ACTGRP(*CALLER).
Thanks,
Jeff Buening
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com 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.