Re: Single Source CICS/Batch
- From: Andreas Lerch <andreas@xxxxxxxxxxxxxxxx>
- Date: Sat, 28 Oct 2006 16:15:15 GMT
?? Ursprüngliche Nachricht
Am 28.10.06, 12:29:27, schrieb "Vanroy - Cleymans" <vanroy@xxxxxxxxxx>
zum Thema Single Source CICS/Batch:
Does anybody has experience with writung the Cobol source code onceand
running the load module(s) in Cics and Batch environment (on Z/OS)
thanks,
Willy Vanroy
hello Willy
every day :-)
for Batch and CICS you can use a main source. Inside that you can call
subroutines for both environments. Some times you need a flag to mark
the different between batch and CICS.
One problem: inside CICS you can not use any FD, SD related
statements. You can do something like this
CICS / batch main --> call calculation-routine with:
if CICS-flag -> exec CICS commands
if batch-flag -> call i/o for file access batch
with the CICS-precompiler parm NOLINKAGE your PROCEDURE DIVISION USING
was not expanded with using dfhcommarea and dfheiblk. The copies are
insertet.
You can make your program able to use CICS-commands if you are using:
if CICS-flag -> exec CICS address eib...
make your programs dynamic by using CALL WS-PGM-NAME instead of CALL
'PGMNAME' and the DYNAM directive at cobol compile time.
Use autoinstall exit to install programms to CICS PCT
DB2 is a very, very strange problem. You can use the identical source
in CICS and batch, but in CICS the compiler was CICS-driven changed to
NODYNAM and therefore the CICS DB2-Api was statically linked and that
can not run within a TSO (IKJEFT0?) or IMS environment. But in batch
you can use the DYNAM compile-option to use the same loadmodul for TSO
and IMS bacause the DB2-Api was dnamicly called.
DB2-Api is the modul DSNHALI, it is different in every environment!
Its not easy its tricky
Einen schoenen Tag
Andreas Lerch
.
- References:
- Single Source CICS/Batch
- From: Vanroy - Cleymans
- Single Source CICS/Batch
- Prev by Date: Re: Tab delimiter
- Next by Date: Re: Tab delimiter
- Previous by thread: Re: Single Source CICS/Batch
- Next by thread: Re: Single Source CICS/Batch
- Index(es):
Relevant Pages
|
|