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 » how to call database,names,tables in IIB plz suggest me

Post new topic  Reply to topic
 how to call database,names,tables in IIB plz suggest me « View previous topic :: View next topic » 
Author Message
sathishkotturi
PostPosted: Sun Jan 08, 2017 3:57 am    Post subject: how to call database,names,tables in IIB plz suggest me Reply with quote

Newbie

Joined: 06 Dec 2016
Posts: 5

DECLARE InRef INTEGER InputRoot.XMLNSC.root;

DECLARE I INTEGER 1;
DECLARE J INTEGER;
SET J = CARDINALITY(InputRoot.XMLNSC.root.sport[]);
WHILE I < J DO
INSERT INTO Database.AYYAPPA.SPORT(TYPES,NAME,RANK,STATE,MATCHES) values(InRef.sport[I].type,InRef.sport[I].name,InRef.sport[I].rank,InRef.sport[I].state,InRef.sport[I].matches);
SET I = I + 1;
END WHILE;


DECLARE RowRef ROW;
SET RowRef.a[] = PASSTHRU('SELECT * FROM AYYAPPA.SPORT ORDER BY TYPES,NAME ASC');

--SET OutputRoot.Properties.MessageFormat = 'MRM';
--SET OutputRoot.Properties.MessageSet = 'H931GJS002001';
--SET OutputRoot.Properties.MessageType = 'Root';



CREATE FIELD OutputRoot.XMLNSC.Main;
DECLARE OutputRef REFERENCE TO OutputRoot.XMLNSC.Main;

DECLARE L INTEGER 1;
FOR InputRef AS RowRef.a[] DO
SET OutputRef.Root[L].a = InputRef.NAME;
SET OutputRef.Root[L].b = InputRef.RANK;
SET OutputRef.Root[L].c = InputRef.STATE;
SET OutputRef.Root[L].d = InputRef.MATCHES;
SET OutputRef.Root[L].e = InputRef.TYPES;
SET L = L+1;
END FOR;

RETURN TRUE;
END;
Back to top
View user's profile Send private message
afroz11031
PostPosted: Sun Jan 08, 2017 6:13 am    Post subject: Reply with quote

Apprentice

Joined: 28 Jan 2014
Posts: 36

What is the error you are getting while calling database? However I hope you have already configured DSN to connect database.


Thanks
Afroz
Back to top
View user's profile Send private message
nelson
PostPosted: Sun Jan 08, 2017 6:34 pm    Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

Please take a look at this:

https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ak05800_.htm
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » how to call database,names,tables in IIB plz suggest me
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.