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 » Determining file size-

Post new topic  Reply to topic
 Determining file size- « View previous topic :: View next topic » 
Author Message
mschristi
PostPosted: Wed Oct 16, 2013 7:20 am    Post subject: Determining file size- Reply with quote

Newbie

Joined: 16 Oct 2013
Posts: 2

I am working with Message broker 7 and I am a newbie. My question is how can I tell the size of a file coming in or tell if the file is empty?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Oct 16, 2013 7:26 am    Post subject: Re: Determining file size- Reply with quote

Grand High Poobah

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

mschristi wrote:
My question is how can I tell the size of a file coming in or tell if the file is empty?


By seeing how many records WMB read out of it before it got to End Of Data.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Oct 16, 2013 8:16 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The real question is, how do you know that the application writing the file has finished writing it?
Back to top
View user's profile Send private message
mschristi
PostPosted: Thu Oct 17, 2013 9:06 am    Post subject: File size Reply with quote

Newbie

Joined: 16 Oct 2013
Posts: 2

Lets assume that it has finished writing and I want to determine the file size, what is the best way to go about it?
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Oct 17, 2013 9:29 am    Post subject: Re: File size Reply with quote

Grand High Poobah

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

mschristi wrote:
Lets assume that it has finished writing


On a large file, that's a big assumption and the subject of much debate here.

mschristi wrote:
I want to determine the file size, what is the best way to go about it?


The best and simplest way is to interogate the number of records recorded when the file has finished processing and the End Of Data terminal is invoked.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Determining file size-
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.