assembler?

>EXEC PGM=ASM1 (LOAD and CALL)--> VSCOB2RES
>Also:;ASM1 (LOAD and CALL via CEEPIPI)--> eCOBOL52

>Two different CAL's in one top-level assembler program to COBOL programs
>compiled with different COBOL compilers.  Either or both COBOL programs may
>be called multiple times in one execution of ASM1.

>My question was prompted by the eCOBOL V5.2 migration statement that COBOL
>V5.2 programs can call and be called by VS COBOL II RES programs.  I cannot

They can!  Not all kinds of CALLs (example: DLL CALLs) but most CALLs.
You are not talking about COBOL calling COBOL, hoever.

>use CEEPIPI to CALL the VS COBOL II RES program because CEEPIPI returns RC=20
>when you try to add it to the CEEPIPI table.

Yes, only LE-conforming programs can be used with CEEPIPI. VS COBOL II programs
are LE-enabled (can run with LE) but are not LE-conformaing (must run with LE).

>I can call the VS COBOL II RES program multiple times if I first LOAD and
>call IGZERRE once (the LE version from CEE.SCEERUN), but using IGZERRE and
>CEEPIPI together is not allowed either according to the migration guide
>(cannot establish 2 different COBOL environments at the same time in the same
>LE enclave, which makes sense to me).

If you really cannot recompile wht VS COBOL II programs with newer compilers and
save MSUs/MIPS/CPU, then you have a problem.  The easiest solution, from what
limited info I have here, is to use a different method toe keep LE active
between CALLs to COBOL.  Remove the use of IGZERRE and add a COBOL stub in front
of your ASM program! Then use the COOBL stub in the JCL:

EXEC PGM=COBSTUB (Which then CALLs ASM1, which then LOADs and CALLs any COBOL)

Since COBSTUB is always active, LE is always up, no performance hit for 
repeatedly
LOADing and BASR/BALRing to COBOL


> If eCOBOL V5.2 can call and be called by VS COBOL II RES programs, how does
> it do that, and how can I do the same thing?

Use simple CALLs, not IGZERRE or CEEPIPI.

Cheers,
TomR              >> COBOL is the Language of the Future! <<

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to