MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Static and Dynamic Call

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Tue Aug 29, 2006 10:24 am    Post subject: Static and Dynamic Call Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Tue Aug 29, 2006 10:34 am    Post subject: Reply with quote

abracadabra,

Post the complete error messages

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Tue Aug 29, 2006 10:44 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Tue Aug 29, 2006 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
abracadabra
Beginner


Joined: 02 Sep 2003
Posts: 101
Topics: 55
Location: India

PostPosted: Tue Aug 29, 2006 12:05 pm    Post subject: Reply with quote

Sorry about that Kolusu.

Here it is CEE3204S.
_________________
Cheers!
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Tue Aug 29, 2006 1:23 pm    Post subject: Reply with quote

Kolusu,

Can you please give the link to the PDF file for messages starting with CEEXXXXX ?
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Tue Aug 29, 2006 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group