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

Reply via email to