|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
line feed for each record |
« View previous topic :: View next topic » |
Author |
Message
|
chanduy9 |
Posted: Fri Feb 01, 2002 10:46 am Post subject: |
|
|
Disciple
Joined: 28 Nov 2001 Posts: 177 Location: USA
|
Hi,
how to feed new line between records. i have 5 records, and i defined MRM structure, i want to send these 5 records in 5 new lines. message is coming from XML file, i am mapping XML to MRM. i am getting output in the same line, but i want it to print 5 different lines.
Thanks in Advance,
with regards,
chandra. |
|
Back to top |
|
 |
kirani |
Posted: Fri Feb 01, 2002 1:37 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You can define a new element which will hold the Newline character. Modify your output MRM message to have this element at the end of the message.
You can also try writing different output messages to output q and then use some "QueueToFile" adapter that will put each message on new line.
Kiran
|
|
Back to top |
|
 |
chanduy9 |
Posted: Fri Feb 01, 2002 2:20 pm Post subject: |
|
|
Disciple
Joined: 28 Nov 2001 Posts: 177 Location: USA
|
Hi Kirani,
Thanks for your response,
how to assign new line charector to element, is there any special charecter is there.
Thanks in advance,
Chandra. |
|
Back to top |
|
 |
kirani |
Posted: Fri Feb 01, 2002 2:49 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Chandra,
HEX value for CR is X'0D' and LF is X'0A'.
Create an element NEWLINE of size STRING(2). In your compute node assign these Hex values to NEWLINE element.
Kiran
|
|
Back to top |
|
 |
chanduy9 |
Posted: Wed Feb 06, 2002 12:04 pm Post subject: |
|
|
Disciple
Joined: 28 Nov 2001 Posts: 177 Location: USA
|
hi Kiran,
i tried as you mentioned but it is giving error, i declared one variable as BLOB which holds new line charecter and if assign with out casting it is giving logical format error, if i cast it to char length becoming 5 but where as my element is length of 2.i increased the length and cast it to char then it is taking x'0D' instead of writing in new line.. i hope i am doing wrong some where..please correct me.
Thanks,
with regards,
Chandra. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|