Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

call a cics cobol from a batch cobol.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: call a cics cobol from a batch cobol.
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: 2360
Location: Israel

PostPosted: Fri Aug 22, 2008 12:36 pm    Post subject:
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    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Aug 22, 2008 2:31 pm    Post subject:
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    Post subject:
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

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


also
>> www.batchcics.com
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us