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 » Single quotes in output

Post new topic  Reply to topic
 Single quotes in output « View previous topic :: View next topic » 
Author Message
dkarpeles
PostPosted: Wed Sep 20, 2006 8:14 am    Post subject: Single quotes in output Reply with quote

Newbie

Joined: 20 Sep 2006
Posts: 2

Does anyone know how to put single quotes on each output field? This is a tag delimited messageset in WMQI 2.1. I need the output to look like:

'field'~'field'~'etc'~

I can get the ~ ok...but not sure about the quotes. Thanks.
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Sep 20, 2006 10:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

I don't know a lot but:
Instead of using the delimiter as ~, use '~'
Now use just ' for the beginning and ending of the message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kimbert
PostPosted: Wed Sep 20, 2006 11:12 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
Now use just ' for the beginning and ending of the message.
You can do this by setting the Group Indicator and Group Terminator for the outermost complex type to ' (single quote).
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Sep 20, 2006 11:30 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

And hope that single-quote doesn't appear in any of your fields.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
dkarpeles
PostPosted: Wed Sep 20, 2006 12:14 pm    Post subject: Reply with quote

Newbie

Joined: 20 Sep 2006
Posts: 2

Yeah...I tried that '~' in the messageset but unfortunately the output could look like this:

HEADER~'DATA'~'DATA2'~~~' '~~~'DATA3'~'ETC'...

so I't almost like I need to put the quotes right on the actual field. So do I expand each field length by 2 to accomodate? Or is there a better way? Thanks for your help.
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Sep 20, 2006 1:09 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

So you don't want the quote around the HEADER field?

The top most complex type, which is {HEADER, COMPLEXTYPE2} doesn't have the Group ind/term ... in inner complex type (COMPLEXTYPE2) which is {DATA... ETC) does....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Single quotes in output
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.