Author |
Message
|
mschristi |
Posted: Wed Oct 16, 2013 7:20 am Post subject: Determining file size- |
|
|
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 |
|
 |
Vitor |
Posted: Wed Oct 16, 2013 7:26 am Post subject: Re: Determining file size- |
|
|
 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 |
|
 |
mqjeff |
Posted: Wed Oct 16, 2013 8:16 am Post subject: |
|
|
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 |
|
 |
mschristi |
Posted: Thu Oct 17, 2013 9:06 am Post subject: File size |
|
|
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 |
|
 |
Vitor |
Posted: Thu Oct 17, 2013 9:29 am Post subject: Re: File size |
|
|
 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 |
|
 |
|