Antwort: Is there a way to execute the same non-CICS DB2 COBOL program in both batch and online?

2010-03-25 Thread Albert Klimek
Hi Amlan
the magic word is 'conditional compile' to activate specific COBOL 
statements in a single COBOL Source. (e.g DFHCOMMAREA in CICS)

COBOL-Source:
$IF COMPILEMODUS = CICS 
 01 DFHCOMMAREA. 
   ...
$END 
$IF COMPILEMODUS = BATCH 
 01 io-area. 
 ... 
$END 

You need two load modules, one for batch and one for CICS. 
Unfortunately IBM COBOL compiler does not support the conditional compile, 
but only Microfocus COBOL compiler.
Therefore you need a preceding step for each compile-job to activate, 
deactivate the conditional compile statements.

Albert 

VERLAGSGRUPPE WELTBILD GMBH
Sitz der Gesellschaft: Augsburg
Handelsregister Augsburg HRB 6035 
Ust-ID-Nr: DE 127501299

Geschäftsführung:
Carel Halff (Vorsitzender), Dr. Martin Beer, Dr. Klaus Driever

Vorsitzender des Aufsichtsrates:
Dr. Klaus Donaubauer


Re: Is there a way to execute the same non-CICS DB2 COBOL program in both batch and online?

2010-03-25 Thread Amlan Prasad
hi Steve,

The problem we have in our Endevor setup is that such a processor 
group is not setup which will have two link-edit steps to write to two 
different load modules.

Is such a processor group available by defult in CA-Endevor or has to 
be customised?

--
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


Is there a way to execute the same non-CICS DB2 COBOL program in both batch and online?

2010-03-24 Thread Amlan Prasad
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.

Any suggestion or trick or mechanism will be highly appreciated.

Thanks,
Amlan

--
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


Re: Is there a way to execute the same non-CICS DB2 COBOL program in both batch and online?

2010-03-24 Thread Thompson, Steve
-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