|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Create an ARRAY variable in ESQL |
« View previous topic :: View next topic » |
Author |
Message
|
williad |
Posted: Sun Feb 24, 2013 9:44 am Post subject: |
|
|
Apprentice
Joined: 08 Sep 2005 Posts: 40 Location: London
|
Hi guys
I think i sorted it (well its working)
what i did is shown below in an extract from the common routine where i added in the CREATE DOMAIN statements. I didnt fully understand the PARSE section, so i thought i build up the statement slowly.... and it seems to work. The trace now shows exactly as the working trace mentioned before. The email is being sent cirrectly. I think i had also a misunderstanding of the outputroot tree, where i thought the EmailOutputHeader was after the BLOB section. i forgot the order of the message headers which when i looked back in the manuals came back to me.
Thank you ALL for your help in regards to this, it is truly much appreciated. Enjoy the rest of your weeknd. (i can now finally sleep )Thank you
CREATE LASTCHILD OF refOutputRoot DOMAIN('EmailOutputHeader');
-- Add recipient information to the EmailOutputHeader
SET refOutputRoot.EmailOutputHeader.To = COALESCE(refEnvironment.Variables.INTERFACE_EMAILS[1].EMAIL_TO,'simitta@Schroders.com');
SET refOutputRoot.EmailOutputHeader.Cc = COALESCE(refEnvironment.Variables.INTERFACE_EMAILS[1].EMAIL_CC,'');
SET refOutputRoot.EmailOutputHeader.Bcc = COALESCE(refEnvironment.Variables.INTERFACE_EMAILS[1].EMAIL_BCC,'');
-- Add sender information to EmailOutputHeader
SET refOutputRoot.EmailOutputHeader.From = COALESCE(refEnvironment.Variables.INTERFACE_EMAILS[1].EMAIL_FROM,'');
SET refOutputRoot.EmailOutputHeader."Reply-To" = COALESCE(refEnvironment.Variables.INTERFACE_EMAILS[1].EMAIL_REPLYTO,'');
-- Add subject to EmailOutputHeader
SET refOutputRoot.EmailOutputHeader.Subject = COALESCE(refEnvironment.Variables.INTERFACE_EMAILS[1].EMAIL_SUBJECT,'');
CREATE LASTCHILD OF refOutputRoot DOMAIN('BLOB'); |
|
Back to top |
|
 |
adubya |
Posted: Mon Feb 25, 2013 12:21 am Post subject: |
|
|
Partisan
Joined: 25 Aug 2011 Posts: 377 Location: GU12, UK
|
|
Back to top |
|
 |
|
|
|
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
|
|
|
|