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 » How to manipulate FileContent in a message flow having JText

Post new topic  Reply to topic
 How to manipulate FileContent in a message flow having JText « View previous topic :: View next topic » 
Author Message
Meetraj
PostPosted: Thu Sep 01, 2005 9:23 am    Post subject: How to manipulate FileContent in a message flow having JText Reply with quote

Novice

Joined: 02 Jul 2005
Posts: 18
Location: India.

Hi All,

In one of my current scenario i got a situation like i want add a carriage return to the filecontent so that the data in the file will remain
unchaged.I am using JText adapter with a message flow where i am using WBIMB.After reading some of the threads in this forum i came to know that i have to use XMLNS rather than MRM domain.

Suggest me a way so that i can manipulate File content.

Thanks in adavance.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 01, 2005 9:29 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If all you need to do is insert/delete/manage carriage return/line feeds, then you do not need XMLNS or MRM.

You can use BLOB. Then you can use CAST, POSITION and SUBSTRING and || (concatenate) to handle your data as one big string.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Meetraj
PostPosted: Thu Sep 01, 2005 9:52 am    Post subject: Reply with quote

Novice

Joined: 02 Jul 2005
Posts: 18
Location: India.

Thank You for the reply.

Actually i need to append carriage return to every line of my file.Becuase
the input file looks like this :

xxxx
yyyy
zzzz

where as my output file is showing like xxxxyyyyzzzz. So i came to know that the carriage return in every line has been deleted from input file.
Here i am using WBIMB,JText adapter along with wrapper BO.So please suggest a way to add carriage to every line of my input file

Thank You.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Sep 01, 2005 9:55 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Well, you can either append the carriage return in WBIMB - using the steps I outlined above - or you can better understand the ASBO/GSBOs you are using and configure them to do this for you in the JText configuration.

I can't help you with the later, as I've never gotten ICS to work for me.

But I would suggest that, in either case, it is a straight forward problem and not very hard at all.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kishoreraju
PostPosted: Thu Sep 01, 2005 8:29 pm    Post subject: Reply with quote

Disciple

Joined: 30 Sep 2004
Posts: 156

Hi

If you want to add CR and LF to your FileContent the only way that i have found is by using xmlIsAsElement.

I tried to to use this htis function with MRM Domain also. but it is not working .

only for that reason i convrted MRM Message to XMLNS and applied that one.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Sep 02, 2005 3:48 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

kishoreraju wrote:
If you want to add CR and LF to your FileContent the only way that i have found is by using xmlIsAsElement..

Which is only applicable using XML or XMLNS. I don't think it applies when using MRM-XML. And I know it doesn't apply when using MRM-TDS, MRM-CWF, BLOB, or any of the other various parser models.

From within Broker, using BLOB is the easiest way to solve this problem.

It is probably better to solve this problem in the JText data model.
_________________
I am *not* the model of the modern major general.
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 » How to manipulate FileContent in a message flow having JText
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.