Posted: Mon Apr 16, 2007 7:14 am Post subject: Common procedure call from a esql file question
Acolyte
Joined: 07 Jun 2005 Posts: 52
I created a esql file with CopyMessageHeaders and wandering should the OutputRoot be IN or INOUT?
PATH COMMON;
CREATE COMPUTE MODULE MQSERIES_Question
CREATE FUNCTION main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders(InputRoot, OutputRoot);
END
END MODULE;
<CopyMessageHeaders.esql>
BROKER SCHEMA COMMON
CREATE PROCEDURE CopyMessageHeaders(IN InputRoot REFERENCE, IN OutputRoot REFERENCE)
BEGIN
DECLARE I INTEGER 1;
DECLARE J INTEGER CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;
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