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 » line feed for each record

Post new topic  Reply to topic
 line feed for each record « View previous topic :: View next topic » 
Author Message
chanduy9
PostPosted: Fri Feb 01, 2002 10:46 am    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Fri Feb 01, 2002 1:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
chanduy9
PostPosted: Fri Feb 01, 2002 2:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Fri Feb 01, 2002 2:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
chanduy9
PostPosted: Wed Feb 06, 2002 12:04 pm    Post subject: Reply with quote

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
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 » line feed for each record
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.