View previous topic :: View next topic |
Author |
Message |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Tue Aug 29, 2006 10:24 am Post subject: Static and Dynamic Call |
|
|
Hi,
I have a DB2 Program that calls all other programs using static call. Infact the application environment has only static calls. Now, in program A, I now have to call a new DB2 program B which is on another region (system). Program A is compiled using NODYN,NUMPROC(NOPFD). When I had initially kept the call to B as static, the linking gave an error stating module not found. I then changed the call to dynamic using NODYN,NUMPROC(NOPFD) and the compile worked. While running the job calling A, I am getting a Protection Error S0C4 while calling B. What could be the problem? _________________ Cheers! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
Posted: Tue Aug 29, 2006 10:34 am Post subject: |
|
|
abracadabra,
Post the complete error messages
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Tue Aug 29, 2006 10:44 am Post subject: |
|
|
Here is error message
The system detected a protection exception (System Completion Code=0C4
From compile unit B at entry point B at compile unit offset 10B6
at address 000BC196.
As I had stated earlier, the application uses only Statuc Calls and that is why NODYN is used. _________________ Cheers! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
Posted: Tue Aug 29, 2006 11:19 am Post subject: |
|
|
abracadabra,
When I said the complete error messages you need to post the message IDS starting with CEEXXXXS
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Tue Aug 29, 2006 12:05 pm Post subject: |
|
|
Sorry about that Kolusu.
Here it is CEE3204S. _________________ Cheers! |
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Tue Aug 29, 2006 1:23 pm Post subject: |
|
|
Kolusu,
Can you please give the link to the PDF file for messages starting with CEEXXXXX ? _________________ Shekar
Grow Technically |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12383 Topics: 75 Location: San Jose
|
Posted: Tue Aug 29, 2006 2:54 pm Post subject: |
|
|
abracadabra,
Looks like your Subroutine is compiled with a different AMODE. Make sure that both subroutine and main program compatible AMODE. Search the forum for AMODE and you will get a better understanding of AMODE
shekhar
You can look up any error message from here
http://www-03.ibm.com/servers/eserver/zseries/zos/bkserv/lookat/
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|