View previous topic :: View next topic |
Author |
Message |
Jamylady Beginner
Joined: 04 Nov 2004 Posts: 68 Topics: 22
|
Posted: Fri Apr 15, 2005 10:20 am Post subject: Is it possible to call same cobol pgm frm CICS and Batch? |
|
|
Hi,
Just a quick question to know if it is possible to call a cobol program (lets say a subroutine) from a CICS program and Batch Cobol program?
Thanks
Jimmy |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
powerhawk Beginner

Joined: 08 Nov 2004 Posts: 28 Topics: 4 Location: Stockholm
|
Posted: Wed Apr 20, 2005 6:36 am Post subject: |
|
|
You can also call a CICS program from a batch program. Like this:
Code: | EXEC CICS LINK PROGRAM ('LK0200')
TRANSID ('EXCI')
APPLID (TARGET-SYSTEM)
COMMAREA (LOCOMM01)
LENGTH (LENGTH OF LOCOMM01)
DATALENGTH (LENGTH OF LOCOMM01)
RETCODE (EXCI-EXEC-RETURN-CODE)
SYNCONRETURN
END-EXEC |
|
|
Back to top |
|
 |
Jamylady Beginner
Joined: 04 Nov 2004 Posts: 68 Topics: 22
|
Posted: Thu Apr 21, 2005 3:28 am Post subject: |
|
|
powerhawk, ,
I am just wondering whether the Batch cobol compiler will be able to understand the CICS statements such as EXEC CICS LINK PROGRAM ...??
Could you please explain?
Thanks
JA |
|
Back to top |
|
 |
powerhawk Beginner

Joined: 08 Nov 2004 Posts: 28 Topics: 4 Location: Stockholm
|
Posted: Fri Apr 22, 2005 7:20 am Post subject: |
|
|
Yes, you need a step in the compile job to translate EXEC CICS till Call 'DFHXCIE' using...
In our installation:
//TRN EXEC PGM=DFHECP1 |
|
Back to top |
|
 |
Jamylady Beginner
Joined: 04 Nov 2004 Posts: 68 Topics: 22
|
Posted: Fri Apr 22, 2005 8:17 am Post subject: |
|
|
powerhawk,
Thanks, But i dont think I will be able to use that facility as we wont be able to change the compile jcl (We are using CHANGEMAN, and I am not sure whether we able to update the compile JCL in ChangeMan
Thanks a million
JA |
|
Back to top |
|
 |
neilxt Beginner
Joined: 01 Mar 2004 Posts: 23 Topics: 1
|
Posted: Wed Sep 20, 2006 8:36 am Post subject: Re: Is it possible to call same cobol pgm frm CICS and Batch |
|
|
Jamylady wrote: | Hi,
Just a quick question to know if it is possible to call a cobol program (lets say a subroutine) from a CICS program and Batch Cobol program?
Thanks
Jimmy |
I think that so long as
a) The called subroutine has no file access or other routine that would have to be handled by CICS.
b) There are no AMODE discrepancies.
c) The calling program uses "CALL" instead of an EXEC CICS LINK.
You should be OK.
I'm pretty sure I remember doing this although it should be noted that it was a long time ago and I was using static linking, not dynamic so there's a wrinkle there I'm not so sure about. |
|
Back to top |
|
 |
|
|