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 » access the variable in ESQL in another Schema

Post new topic  Reply to topic
 access the variable in ESQL in another Schema « View previous topic :: View next topic » 
Author Message
chenna.hari
PostPosted: Wed Jan 19, 2011 8:17 pm    Post subject: access the variable in ESQL in another Schema Reply with quote

Centurion

Joined: 21 Mar 2009
Posts: 103

I have two ESQL

one ESQL is as below

Quote:
BROKER SCHEMA A

PATH B;

CALL externalprocedure(x, y);


another ESQL is as below

Quote:
BROKER SCHEMA B

CREATE PROCEDURE externalprocedure(x,y) Language Database
External Name "<schema>.package.procedure";



I need to pass the <schema> from first ESQL to second ESQL,
Can any one help in this case how to pass the variables from one ESQL to another ESQL and how can i assign <schema> passed from First ESQL
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 19, 2011 8:55 pm    Post subject: Reply with quote

Grand High Poobah

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

This is very confusing.
I doubt very much that the schema in your external procedure has anything at all to do with a broker schema (i.e. PATH xyz;).
It looks to me to be referring to a database schema. Whether you need to specify the DB schema, or not, depends mainly on the userId the broker is going to use for this procedure call. This will depend again on the database DSN setup and the internal DB setup for that user. So you might want to talk to your DBAs first.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
chenna.hari
PostPosted: Wed Jan 19, 2011 9:00 pm    Post subject: Reply with quote

Centurion

Joined: 21 Mar 2009
Posts: 103

i need to provide the schema name in database procedure when i use package.. this is must whether broker have access or not..

here the query is how to access the variable in second ESQL which is declared in first ESQL??
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 19, 2011 9:07 pm    Post subject: Reply with quote

Grand High Poobah

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

chenna.hari wrote:
i need to provide the schema name in database procedure when i use package.. this is must whether broker have access or not..

here the query is how to access the variable in second ESQL which is declared in first ESQL??

Did you make sure the type of x and y matches what the DB procedure is expecting. Is there a return expected? Did you look at the ROW variable? Did you look for examples??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
chenna.hari
PostPosted: Wed Jan 19, 2011 9:20 pm    Post subject: Reply with quote

Centurion

Joined: 21 Mar 2009
Posts: 103

please clarify this query...

how to access in second ESQL any variable that is declared in first ESQL
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 19, 2011 9:34 pm    Post subject: Reply with quote

Grand High Poobah

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

chenna.hari wrote:
please clarify this query...

how to access in second ESQL any variable that is declared in first ESQL

By passing it in the call, explicitely and sometimes you need a reference! Broker 101 -- get training!
_________________
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 » access the variable in ESQL in another Schema
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.