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 » Help with creating an e-mail message body.

Post new topic  Reply to topic
 Help with creating an e-mail message body. « View previous topic :: View next topic » 
Author Message
wmb61_user
PostPosted: Tue Jun 17, 2008 11:05 am    Post subject: Help with creating an e-mail message body. Reply with quote

Novice

Joined: 08 May 2008
Posts: 18

Folks,

We intend to send out an e-mail with the name of the source queue and the execption message in the body of the e-mail. We have figured out the part where we can send an e-mail with the source queue name. I am stuck as to how to get the exceptionl list in the body along with the queue name. I guess I need to do concatenation but not sure of the correct data types. Any help is appreciated.

Thanks.
Back to top
View user's profile Send private message
Gemz
PostPosted: Wed Jun 18, 2008 1:21 am    Post subject: Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

Hi,

Hope you are using MB v6.1

You can concatenate both Queue name and Exception list as a single string and pass it to email node.

Quote:
SET OutputRoot.XMLNSC.MailMsg = Queuename || ExceptionList;
Back to top
View user's profile Send private message
AkankshA
PostPosted: Wed Jun 18, 2008 1:31 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

wont he need to first convert exception list into a string.... may be by using ASBITSTREAM.... since concat operator expects string datatype and results string as well...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Gemz
PostPosted: Wed Jun 18, 2008 2:06 am    Post subject: Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

Yep ExceptionList has to be string.

He can convert the ExceptionList to string by using ASBITSTREAM or can save the ExceptionList in Env variable and use it.
Back to top
View user's profile Send private message
wmb61_user
PostPosted: Tue Jul 15, 2008 11:06 am    Post subject: Help with creating an e-mail message body Reply with quote

Novice

Joined: 08 May 2008
Posts: 18

I tried the following and it does not work. Any ideas?.


SET Exceptions = ASBITSTREAM(InputRoot.ExceptionList);
SET OutputRoot.XMLNSC.Email.Body = InputRoot.MQMD.SourceQueue || CAST(Exceptions AS CHARACTER);
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Jul 15, 2008 8:50 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

have a look at the parameters of ASBITSTREAM function here...

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak05510_.htm
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
wmb61_user
PostPosted: Thu Jul 24, 2008 1:32 pm    Post subject: Reply with quote

Novice

Joined: 08 May 2008
Posts: 18

AkankshA,

I am not sure as to what parameters to use in the ASBITSTREAM funciton. Need some guidance.

Thanks.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Jul 24, 2008 1:46 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

The search button will turn up dozens of examples.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Jul 24, 2008 8:13 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

wmb61_user wrote:
AkankshA,

I am not sure as to what parameters to use in the ASBITSTREAM funciton. Need some guidance.

Thanks.


Check out the link i gave....


http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak05510_.htm
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Help with creating an e-mail message body.
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.