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 » filesize : fileRead Node

Post new topic  Reply to topic
 filesize : fileRead Node « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Thu Oct 04, 2012 7:13 am    Post subject: filesize : fileRead Node Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

Hi

Is there anyway I can get the incoming file size using the file read node?
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Oct 04, 2012 7:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ac55150_.htm

This value is stored in the local environment.

Code:
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
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Oct 04, 2012 8:02 am    Post subject: Re: filesize : fileRead Node Reply with quote

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.
Back to top
View user's profile Send private message
matuwe
PostPosted: Fri Oct 05, 2012 5:27 am    Post subject: Reply with quote

Master

Joined: 05 Dec 2007
Posts: 296

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.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Oct 05, 2012 5:41 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Put another flow in front of this one, that reads the whole file instead of a record at a time.

Use that to route files to 'batch' vs 'realtime' processing.
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 » filesize : fileRead Node
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.