I have been experimenting with dynamic mixing of LE pre-initialization and non-le initialization in the same assembler main program, and I do know that they cannot be both used at the same time; you can only do one or the other at a time. So I tried to set things up so that if I found the module to be called was non-LE I would terminate the LE (init_sub) environment with a (term) call and then call IGZERRE to set up for a non-LE call.
I have encountered a catch-22 situation - in order to find out if a module to be called later is LE or non-LE, I have to set up the pre-initialization environment first and do an (add_entry) call. If RC = 12 (X'0C') from (add_entry) it is a non-le subroutine and I need to use the older IGZERRE initialization routine. Even when I terminate the pre-initialization environment using the (term) call, when I invoke IGZERRE following the (term) call I get a S0C1 abend in CEEPIRA. What am I missing here? Can I not use IGZERRE after setting up and then terminating the pre-initialization environment? The issue I am trying to solve is that we have some old utility COBOL subroutines called from assembler main programs that were compiled with VS COBOL II V1.2, and that version of COBOL does NOT generate an LE-enabled executable program. You must use IGZERRE to set up to call such subroutines. Re-compiling the old VS COBOL II V1.2 subroutines with an LE-generating compiler is obviously a better option, but I need to provide for downward compatibility before that conversion can be scheduled. I could just LOAD the subroutine first and manually examine it to determine if it is VS COBOL II V1.2 or earlier (the eye-catcher "C2 1.2.0" near the beginning of the program allows that fairly easily), and then DELETE the module if it is actually an LE mocule, but that seems inefficient for future use when it gets converted to a later COBOL version. (I try not to be perfectionist about efficiency, but sometimes I can't help myself.) TIA for any assistance or RTFM you can provide. Peter This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
