If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > stored procedure problem -301 sqlcode different results in defferent environments

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-16-05, 07:01
rosjon rosjon is offline
Registered User
 
Join Date: Nov 2005
Posts: 1
stored procedure problem -301 sqlcode different results in different environments

Hi all,
I have a problem when calling a stored procedure built in Cobol on os390.
The stored procedure is called from a .NET client using db2connect. The stored procedure requires a smallint inparameter, but the client actually calls it using the datatype char length 2. In our testing environments mainframe it works perfectly but on our production mainframe it doesnt work but returns an error sqlcode -301 42895 THE VALUE OF INPUT HOST VARIABLE OR PARAMETER NUMBER CANNOT BE USED AS SPECIFIED
BECAUSE OF ITS DATA TYPE. As we are getting this in production but not in test we have a problem and I am wondering if anyone has any suggestion on how to sync the environments so that I get the same error on my test mainframe. Is there a setting I can tweak in db2 to get this typesafe behavior. Is there a setting in db2connect.
I would be very grateful for any help or suggestion...

Last edited by rosjon; 11-16-05 at 07:27.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On