Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to call Cobol DB2 program from CICS program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: How to call Cobol DB2 program from CICS program
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

Site Director


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

PostPosted: Sun Sep 26, 2010 4:39 am    Post subject:
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    Post subject: Reply to: How to call Cobol DB2 program from CICS program
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

Site Director


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

PostPosted: Mon Sep 27, 2010 1:20 am    Post subject:
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    Post subject:
Reply with quote

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

Site Director


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

PostPosted: Thu Oct 07, 2010 12:48 am    Post subject: Reply to: How to call Cobol DB2 program from CICS program
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    Post subject: Reply to: How to call Cobol DB2 program from CICS program
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

Site Director


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

PostPosted: Mon Nov 08, 2010 2:01 am    Post subject: Reply to: How to call Cobol DB2 program from CICS program
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    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
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us