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

How to call Cobol DB2 program from CICS program


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

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Sun Sep 26, 2010 4:06 am
Reply with quote

Hi,

I have an requirement to call the cobol db2 sub program from the CICS Mainprogram.

The subprogram is a db2 program which will fetch the data from the table and pass to the mainprogram. It is working fine in Batch...

I just want the same logic to my CICS program. I tried the same. But I didn't get any result or abend.

I am not sure where am i need to change anything in the subprogram for specific to the CICS program call.
Like DFHCOMMAREA or some thing needs to be add?

Please advice...
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Sep 26, 2010 4:39 am
Reply with quote

Hello,

Quote:
But I didn't get any result or abend.
Something happened icon_smile.gif

Suggest you talk with a senior on your project, a cics support person, or a dba as to how this should be done on your system. There should already be standard processes in place to compile/link/bind the subprogram as well as define it to cics.

Your batch cobol subprogram most likely will not run in cics "as is".
Back to top
View user's profile Send private message
Pons

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Mon Sep 27, 2010 12:51 am
Reply with quote

Tahnks dick scherrer.

But I add my collection in to the corresponding plan. So i guess no issues by calling the table using that plan. I used endeavor to migrate the changes. I didnt get any error for bind or something.

Here my doubt is, am i need to do anything specially for CICS program Call into the sub program.

Calling sub program via CICS program is act like a Cobol Mainprogram or Do we need to do anything specially for this? Like Adding sub program name into some CICS Table like PCT or Need to change the Linkage section as DFHCOMMAREA...

Not sure, Pls advice..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 27, 2010 1:20 am
Reply with quote

Hello,

There is more than a 99% chance that your batch subroutine will not run "as is" in cics.

Quote:
Here my doubt is, am i need to do anything specially for CICS program Call into the sub program.
Most likely, yes. . .

As i said before ;
Quote:
Suggest you talk with a senior on your project, a cics support person, or a dba as to how this should be done on your system.
You need to make sure your code is done the same way as other subprograms called by cics program on that system. No one here knows how your system is configured/managed icon_confused.gif
Back to top
View user's profile Send private message
X5

New User


Joined: 18 Mar 2010
Posts: 1
Location: USA

PostPosted: Thu Oct 07, 2010 12:33 am
Reply with quote

these people are robots
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Oct 07, 2010 12:48 am
Reply with quote

Hello,

Surely not the correct way to introduce yourself. . . icon_evil.gif

If i see another post like this, there won't be a third. . .

d
Back to top
View user's profile Send private message
Pons

New User


Joined: 25 May 2007
Posts: 61
Location: Coimbatore

PostPosted: Mon Nov 08, 2010 1:16 am
Reply with quote

FYI,

Its working as I expeced. I just added my COLLECTION into the Online CICS Proram PLAN. Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Nov 08, 2010 2:01 am
Reply with quote

Good to hear it is working - thank you for posting your solution icon_smile.gif

d
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