-----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Amlan Prasad Sent: Wednesday, March 24, 2010 12:57 PM To: IBM-MAIN@bama.ua.edu Subject: Is there a way to execute the same non-CICS DB2 COBOL program in both batch and online?
Hello, My understanding is that DB2 CAF for CICS and batch environments are different because of which two different load modules are needed to run in these environments even when the actual program may be same. In my project there are many COBOL programs which have DB2 statements but no CICS and are needed for both batch and online. They are just service programs. Currently we have to create two different programs with almost identical code to get two different load modules. If there is some way where we can have only one program load module work in both environments, it will be very helpful. We are using CA-Endevor as change management software which also currently can not create two physically different load modules for the same code otherwise that also could have worked for us. <SNIP> Capture the OBJECT deck output from the COBOL compiler. Now run two different linkedit steps, each will point to the OBJECT that was captured, but will have different INCLUDE statements to control the output. Speaking of output, you will have to write to two different Loadlibs. This will become a new and different Endevor processor. Regards, Steve Thompson ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html