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 » Enclosing string in double quotes

Post new topic  Reply to topic
 Enclosing string in double quotes « View previous topic :: View next topic » 
Author Message
Accell
PostPosted: Wed Jan 20, 2016 3:43 am    Post subject: Enclosing string in double quotes Reply with quote

Novice

Joined: 07 Feb 2015
Posts: 24

Hi All,

I am trying to enclose a string from input root to output in double quotes but output is not as expected.

What i m trying to get:

"Value1","Value2"

I tried '"'||Inputroot.DFDL.Value||'"'


Could you please provide the solution for escaping double quotes?

Many Thanks.
Back to top
View user's profile Send private message
timber
PostPosted: Wed Jan 20, 2016 4:16 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

You have an incorrect mental picture of what happens when a message is processed by IIB. InputRoot.DFDL is a message tree. It is not the input bit stream. It is not a BLOB. It is not a string. Therefore you cannot concatenate a character onto InputRoot.DFDL.

It sounds as if you need some training on how to use the product. It's not complicated, but there are some important concepts that you clearly have not grasped yet.

If you describe the task that you are trying to perform, and why you need to do that task, then we can probably be more helpful.
Back to top
View user's profile Send private message
Accell
PostPosted: Wed Jan 20, 2016 5:28 am    Post subject: Reply with quote

Novice

Joined: 07 Feb 2015
Posts: 24

Thanks Timber.However i also tried concatenating double quotes with default characters such as set outputroot.dfdl.x.y = '"'||'Value1'||'"' but the output is coming as """value1""".

Could you please post me a link for esql escape sequence so that i can understand the concept.

Many Thanks.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 20, 2016 5:33 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

What timber was trying to tell you is, it is very hard to tell you anything when we don't know anything :
  • what is your requirement
  • why DFDL
  • What is your DFDL setup
  • What have you tried so far
  • With what kind of a result


Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
timber
PostPosted: Wed Jan 20, 2016 9:31 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Quote:
i also tried concatenating double quotes with default characters such as set outputroot.dfdl.x.y = '"'||'Value1'||'"' but the output is coming as """value1""".
You are making a whole lot of assumptions about how IIB works without even realising that you are doing so. Don't feel bad about that; a lot of developers do the same when they encounter a new technology.

You absolutely *must* take time to understand the programming model in IIB. If you don't, you will fail regularly with no idea why.
One more time...
- Input nodes convert bit streams into message trees. They use a parser for this, and the parser might need a model to help it.
- Message flow nodes never read or change the raw bit stream. They read or change the message tree.
- Output nodes convert the message tree into a bit stream. They use a parser for this, and the parser might need a model to help it.

All data format handling ( understanding and writing of data formats, including adding delimiters and start/end characters ) is performed by the parser.

Your parser is currently DFDL. I have no idea whether that's a good design decision ( see Vitor's comments above ). If you want to do this using DFDL then you must configure your DFDL model to add the leading and trailing quotes. If you're happy to do it by direct manipulation of the bit stream then you will need to use the BLOB domain instead.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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