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
 

 

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
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