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

cics program calling a cobol-db2 program


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
babruvahana

New User


Joined: 30 Mar 2008
Posts: 10
Location: hyderabad

PostPosted: Wed Dec 10, 2008 4:24 pm
Reply with quote

Hi!
I have a CICS-COBOL-DB2 program calling a COBOL -DB2 program and i need instructions to return control back to the calling program . My cobol-db2 program should run in backend.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Dec 10, 2008 5:07 pm
Reply with quote

Quote:
My cobol-db2 program should run in backend.

What do you mean by this? Could you please elaborate?
Back to top
View user's profile Send private message
babruvahana

New User


Joined: 30 Mar 2008
Posts: 10
Location: hyderabad

PostPosted: Wed Dec 10, 2008 5:10 pm
Reply with quote

sorry i mean tat there is no cics screen for tat cobol-db2 program.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Dec 10, 2008 6:38 pm
Reply with quote

Are you facing any problems in using LINK and RETURN keywords for CICS programs?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Dec 10, 2008 6:44 pm
Reply with quote

Do you want the called program to run, halting the screen until it finished, and returns to the calling program -- or do you want the called program to run independently of the calling program so it can display another screen and continue? EXEC CICS LINK works fine in the first case; in the second case you'll need to start a transaction that will run by itself.
Back to top
View user's profile Send private message
babruvahana

New User


Joined: 30 Mar 2008
Posts: 10
Location: hyderabad

PostPosted: Wed Dec 10, 2008 8:41 pm
Reply with quote

thank you agkshirsagar and robert for your replies. roberts first case worked well for me . once again thank u guys
Back to top
View user's profile Send private message
babruvahana

New User


Joined: 30 Mar 2008
Posts: 10
Location: hyderabad

PostPosted: Tue Dec 16, 2008 10:00 pm
Reply with quote

i ran my program but in my back end program(cobol-db2) i update my db2 tables but once i run the transaction the updation is not reflecting in the tables.
There was a heated debate on this issue as i seen from one of the posts but going through the post din help me .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Dec 16, 2008 11:31 pm
Reply with quote

Suggestion: have the back end program write status information to the CICS message queue so you can ensure everything is happening the way it is supposed to, or trace it through CEDF (or another tool if available). There may be something happening that is preventing the update.
Back to top
View user's profile Send private message
babruvahana

New User


Joined: 30 Mar 2008
Posts: 10
Location: hyderabad

PostPosted: Tue Dec 16, 2008 11:45 pm
Reply with quote

thank u fr the reply robert.
i did check via cedf and the program is getting linked and all sql codes are 0 . but when i check in SPUFII there is no change in the tables
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 -> HomeWorks & Requests

 


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