But B_TEXT is both for assembler and Enterprise COBOL v4 and earlier. This COBOL requires LE, as does any COBOL after LE was introduced in 1998. That certainly includes COBOL/370, COBOL for MVS & VM, COBOL for OS/390 & VM, COBOL for z/OS & OS/390, and COBOL for z/OS.
And C_CODE doesn't mean COBOL or LE. As far as I know, it just means Compiler Code, which could be any compiler, including one that doesn't use LE. My guess is that something is treating the alias as an offset from the start of the class, not from the load module load address or EPA. And since the class isn't in the alias, it is from the start of the class of the main entry. Whatever it is, it is annoying. The only way I could get my load module to work was to downgrade the COBOL program to COBOL v4, so that it was in the same B_TEXT class as the assembler program. -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Jon Perryman Sent: Friday, October 20, 2023 8:26 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Why do all entry points have to be in the same class? On Fri, 20 Oct 2023 16:38:54 +0000, Schmitt, Michael <michael.schm...@dxc.com> wrote: > main module entry point is assembler (CLASS B_TEXT) > and the alternate entry I wanted was to IBM Enterprise COBOL for z/OS v6 > (CLASS C_CODE). > >This is not permitted. *why* do all entry points have to be in the same class? > I thought a directory alias entry is just an offset into the module. The most obvious answer is incompatible entry point types. Language Environment entry points require LE initialization whereas no pre-processing is required for an assembler entry point. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN