Author |
Message
|
Meetraj |
Posted: Thu Sep 01, 2005 9:23 am Post subject: How to manipulate FileContent in a message flow having JText |
|
|
 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 |
|
 |
jefflowrey |
Posted: Thu Sep 01, 2005 9:29 am Post subject: |
|
|
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 |
|
 |
Meetraj |
Posted: Thu Sep 01, 2005 9:52 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Thu Sep 01, 2005 9:55 am Post subject: |
|
|
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 |
|
 |
kishoreraju |
Posted: Thu Sep 01, 2005 8:29 pm Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Sep 02, 2005 3:48 am Post subject: |
|
|
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 |
|
 |
|