ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Stored Procedure with Param Type: CHAR FOR BIT DATA

Post new topic  Reply to topic
 Stored Procedure with Param Type: CHAR FOR BIT DATA « View previous topic :: View next topic » 
Author Message
dominik.schweers
PostPosted: Wed Nov 05, 2008 12:54 am    Post subject: Stored Procedure with Param Type: CHAR FOR BIT DATA Reply with quote

Novice

Joined: 23 Oct 2008
Posts: 17

Hi Guys,

i need to call a stored proc on DB2(z/OS). The stored proc has two parameters. The first is declared as CHARACTER. The second ist declared as CHARACTER FOR BIT DATA . Both are INOUT.

We tried to call it via

Code:

CREATE PROCEDURE myProc(INOUT ch_param CHARACTER, INOUT ch_result CHARACTER)
   LANGUAGE DATABASE
   EXTERNAL NAME "PROC";


CALL myProc(ch_param, ch_result) IN Database.{STD_DB_SCHEMA(ref_env)};


STD_DB_SCHEMA(ref_env) generates the Schema for the current environment.

The Call does not work correctly, we get

[IBM][CLI Driver] CLI0112E Zuordnungsfehler. SQLSTATE=22005

How to handle the CHARACTER FOR BIT DATA in ESQL?

Any ideas?

Thank you.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Nov 05, 2008 10:57 am    Post subject: Re: Stored Procedure with Param Type: CHAR FOR BIT DATA Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

dominik.schweers wrote:
Hi Guys,

i need to call a stored proc on DB2(z/OS). The stored proc has two parameters. The first is declared as CHARACTER. The second ist declared as CHARACTER FOR BIT DATA . Both are INOUT.

We tried to call it via

Code:

CREATE PROCEDURE myProc(INOUT ch_param CHARACTER, INOUT ch_result CHARACTER)
   LANGUAGE DATABASE
   EXTERNAL NAME "PROC";


CALL myProc(ch_param, ch_result) IN Database.{STD_DB_SCHEMA(ref_env)};


STD_DB_SCHEMA(ref_env) generates the Schema for the current environment.

The Call does not work correctly, we get

[IBM][CLI Driver] CLI0112E Zuordnungsfehler. SQLSTATE=22005

How to handle the CHARACTER FOR BIT DATA in ESQL?

Any ideas?

Thank you.

Have you tried using a BLOB type? You will of course need to know in which CCSID your char for bit data is stored on the DB.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Stored Procedure with Param Type: CHAR FOR BIT DATA
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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.