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 » FileOutput node: output filesize

Post new topic  Reply to topic
 FileOutput node: output filesize « View previous topic :: View next topic » 
Author Message
firoj.badsa
PostPosted: Sat Jul 07, 2012 3:42 am    Post subject: FileOutput node: output filesize Reply with quote

Centurion

Joined: 16 Feb 2007
Posts: 104

Hi,

Is there any way I can get the file size from fileoutput node? I need to keep a log of the transferred file size.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sat Jul 07, 2012 5:02 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

No but you can get the length of the input data. This is easy if you read the message as a BLOB and parse it later.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
kash3338
PostPosted: Sat Jul 07, 2012 9:53 am    Post subject: Re: FileOutput node: output filesize Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

firoj.badsa wrote:

Is there any way I can get the file size from fileoutput node? I need to keep a log of the transferred file size.


If you want to keep track of the transferred file size, you can have a Java app to know the file size and log it once the file is placed by WMB.
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Sun Jul 08, 2012 6:40 am    Post subject: Re: FileOutput node: output filesize Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

kash3338 wrote:
If you want to keep track of the transferred file size, you can have a Java app to know the file size and log it once the file is placed by WMB.



There's no guarantee that the output file is anywhere that a standalone java application can be read from.

You can, as smdavies99 alluded to, keep track of the size of the messages that are passed to the FileOutput node. Passing them as blob and saving the length of that blob is a start, presuming that each output message represents a single file, and not a single record in a single file instead.

But it's not a simple problem and it's not clear that there's a good answer.

Best thing would be for someone to file a requirement or a PMR to get FileOutput to add written size to the Local Environment.
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 » FileOutput node: output filesize
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.