Offset INTEGER The start of the record within the file. The first record starts at offset 0. When Offset is part of the End of Data message tree, this value is the length of the input file.
If you want to know ahead of time what the size of the file is, you'll need to use a separate flow and a JCN to scan the directory. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Posted: Thu Oct 04, 2012 8:02 am Post subject: Re: filesize : fileRead Node
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
matuwe wrote:
Is there anyway I can get the incoming file size using the file read node?
You'd struggle to get that from a FileInput node, unless you're working with fixed length records.
Why do you need to know? Perhaps there's another way to achieve the requirement. _________________ Honesty is the best policy.
Insanity is the best defence.
Hi Thanks for the reply. I need to know how big the file is so that in-case a 5GIG file is processed during the day I should just move it to batch and not process it right away.
If I use Jedi Knight suggestion I will only know when I read the last batch as I am currently reading one line at a time.
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