View previous topic :: View next topic
|
Author |
Message |
Pons
New User
Joined: 25 May 2007 Posts: 61 Location: Coimbatore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But I didn't get any result or abend. |
Something happened
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 |
|
|
Pons
New User
Joined: 25 May 2007 Posts: 61 Location: Coimbatore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
Back to top |
|
|
X5
New User
Joined: 18 Mar 2010 Posts: 1 Location: USA
|
|
|
|
these people are robots |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Surely not the correct way to introduce yourself. . .
If i see another post like this, there won't be a third. . .
d |
|
Back to top |
|
|
Pons
New User
Joined: 25 May 2007 Posts: 61 Location: Coimbatore
|
|
|
|
FYI,
Its working as I expeced. I just added my COLLECTION into the Online CICS Proram PLAN. Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for posting your solution
d |
|
Back to top |
|
|
|