IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

call a cics cobol from a batch cobol.


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gabriel.ryoga

New User


Joined: 07 Jun 2007
Posts: 31
Location: Spain

PostPosted: Fri Aug 22, 2008 11:50 am
Reply with quote

I have a cics cobol program, and I want to call it from a batch cobol program.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Aug 22, 2008 12:36 pm
Reply with quote

Good for you. I recommend using EXCI.

O.
Back to top
View user's profile Send private message
gabriel.ryoga

New User


Joined: 07 Jun 2007
Posts: 31
Location: Spain

PostPosted: Fri Aug 22, 2008 1:03 pm
Reply with quote

I think I've read somewhere that I could call the cics program with
Code:
"call 'program' using DFHEIBLK, DFHCOMMAREA


And that this works if the called program doesn't have any exec LINK.

Does anybody know if this is true??

Thanks.
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Fri Aug 22, 2008 2:31 pm
Reply with quote

You need to be clearer in stating what you are trying to do. Are you trying to call the program to have it execute in a CICS region? Do you want to call a program that just happens to be used in a CICS regions?

If a program has no EXEC CICS commands within it, it can be called from CICS or batch - If called in CICS, it executes in the CICS region . If called in batch it executes in the batch region.

Garry.
Back to top
View user's profile Send private message
Earl Haigh

Active User


Joined: 25 Jul 2006
Posts: 475

PostPosted: Fri Aug 22, 2008 5:37 pm
Reply with quote

You can not CALL a CICS program from batch.

requires writing your own EXCI.

as posted on this forum earlier regarding batch to cics communications,
try

>> cicswiki.org/cicswiki1/index.php?title=How_do_I_interact_with_a_transaction_from_a_batch_program%3F


also
>> Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top