|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
how to call database,names,tables in IIB plz suggest me |
« View previous topic :: View next topic » |
Author |
Message
|
sathishkotturi |
Posted: Sun Jan 08, 2017 3:57 am Post subject: how to call database,names,tables in IIB plz suggest me |
|
|
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 |
|
 |
afroz11031 |
Posted: Sun Jan 08, 2017 6:13 am Post subject: |
|
|
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 |
|
 |
nelson |
Posted: Sun Jan 08, 2017 6:34 pm Post subject: |
|
|
 Partisan
Joined: 02 Oct 2012 Posts: 313
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|