On Mon, 24 Nov 2008 11:05:03 -0700, Steve Comstock <[EMAIL PROTECTED]> wrote:
>Frank Swarbrick wrote: >> Is there, by chance, anything that you can place in a Cobol source module >> that will pass instructions to the binder? > >No. But wouldn't autocall pick it up from your syslib >in the bind step? Hi Steve, Yes and no. The code in the program is CALL 'EZASOKET', so it picks up that entry from the EZASOKET load module. Apparently under CICS you have to use the EZACICAL load module instead, so that it does CICS waits and not MVS waits (and probably other things as well). It appears I can do the following to get close to that (from http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/f1a1g140/8.2): "If you do not want to explicitly include EZACICAL in your link-edit JCL then you can use the EZACICSO CICS Sockets Extended module. The EZACICSO CICS Sockets Extended module is an ALIAS for EZASOKET that resides in the same entry point in EZACICAL as EZASOKET. You must also substitute any "CALL EZASOKET" invocations in your program with "CALL EZACICSO". This allows you to use the Binder's Automatic Library Call option (AUTOCALL) to build your load modules." This is what I will probably end up doing. But, as I said, it couldn't hurt to ask my original question. To be honest, I am kind of annoyed that EZACICAL has to exist at all. In VSE there is only the EZASOKET module, and it can be used both for batch and CICS programs. It apparently has logic that determines what environment it is running in, and branches appropraitely (ie, doing a CICS wait when under CICS and a VSE wait when in batch). While we only have a single application that does EZASOKET calls, and it's a CICS program, it seems like sometime in the future we might have some sort of subroutine that can be called to do some socket stuff. And it would be nice to have a single source code that creates a single load module. We have some (non-socket) subroutines that we use in this manner. I'm afraid to look, but does DB2 behave in a similar manner? Meaning, you can write a subroutine that does SQL, but you have to create both a batch load module and a CICS load module because of different binder requirements? (DB2 on VSE has this requirement, unlike sockets on VSE which does not). Always complaining, Frank ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

