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 insert multiple records into a single File?

Post new topic  Reply to topic
 How to insert multiple records into a single File? « View previous topic :: View next topic » 
Author Message
kumarjk
PostPosted: Mon May 17, 2010 10:50 am    Post subject: How to insert multiple records into a single File? Reply with quote

Newbie

Joined: 17 May 2010
Posts: 2

Hello,

I am trying to accumulate multiple records in my message flow and want to send it to a single File using File Output node.

Can you guide me like how the whole process will look loke???

Thanks in advance!!!

Kumar
Back to top
View user's profile Send private message
eai_guy
PostPosted: Mon May 17, 2010 10:52 am    Post subject: Reply with quote

Voyager

Joined: 18 Oct 2007
Posts: 90

Are you trying to read these messages from queue , Database . Provide more info please...
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon May 17, 2010 10:53 am    Post subject: Re: How to insert multiple records into a single File? Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

kumarjk wrote:
Can you guide me like how the whole process will look loke???


It's going to look like a message flow with some kind of input at the front, probably a compute node in the middle and a file output node at the end. Though I imagine you knew that.

Do you have a specific question? How did your prototype go? Did it throw errors? Or fail to assemble the records correctly?

More information, better advice.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kumarjk
PostPosted: Mon May 17, 2010 10:58 am    Post subject: Reply with quote

Newbie

Joined: 17 May 2010
Posts: 2

I am reading messages from SOAP input node and doing the mapping from source to destination and sending it to a file. I am able to send one record to a file.

But the design says to accumulate all records for one day and send all the records to a single file.

So I am not able to figure out to do this task???

Thanks,
Kumar
Back to top
View user's profile Send private message
eai_guy
PostPosted: Mon May 17, 2010 11:00 am    Post subject: Reply with quote

Voyager

Joined: 18 Oct 2007
Posts: 90

You can always dump those messages in a queue or DB and use timer nodes to get everything in a file.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon May 17, 2010 11:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

eai_guy wrote:
You can always dump those messages in a queue or DB and use timer nodes to get everything in a file.


Or read about the "Finish file" terminal of the FileOutput node.

Whichever seems easier, really.
Back to top
View user's profile Send private message
sushilinhere
PostPosted: Wed May 19, 2010 1:27 am    Post subject: Reply with quote

Newbie

Joined: 17 Apr 2010
Posts: 2

Just adding on what has been already said. Incase u havent checked the manual , heres a lil pointer to help . Look into the options of the FileOutput Node and you will see that u can either write all the content in one shot and close the file or u can gradually append data into the same file before closing /finishing it off with some condition. Use a timer to send the final finish to file request at the end of the day and till that point, the appended file will sit in mqsitransit folder.

There are couple of issues using this ( when u have an entire days data to be filled in one file).. incase ur msgflow goes out or broker goes down , then its a lil pain to finish tat file .. ( unless done manually )
_________________
------------------------------------------------
IBM MBv6.0 Solution Designer
IBM MQ v6.0 System Admin
------------------------------------------------
I dont fight to Win.. I fight Just Coz i HAVE TO!!! ( Same goes for sloth'ing around )
Back to top
View user's profile Send private message Send e-mail
jbanoop
PostPosted: Wed May 19, 2010 5:01 am    Post subject: Reply with quote

Chevalier

Joined: 17 Sep 2005
Posts: 401
Location: SC

Are you creating the file name dynamically or seting it on the FON ?
For adding records to a file, you might want to look at the 'Record is Delimited Data' option on the FON
Back to top
View user's profile Send private message Yahoo Messenger
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 insert multiple records into a single File?
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.