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 » MQInput input file.

Post new topic  Reply to topic
 MQInput input file. « View previous topic :: View next topic » 
Author Message
usr_12345
PostPosted: Tue May 14, 2013 9:01 am    Post subject: MQInput input file. Reply with quote

Novice

Joined: 14 May 2013
Posts: 11

How would be go about an MQInput node take input from a file (large file, about 35 to 50 mb) placed at a particular directory.
When i try using test message flow, it throws an outOfMemory error.

thanks.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue May 14, 2013 9:27 am    Post subject: Reply with quote

Jedi Knight

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

Are you sure you want to use MQInput? Maybe FileInput would be better. IN either case, try the BLOB parser.
_________________
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: Tue May 14, 2013 9:29 am    Post subject: Re: MQInput input file. Reply with quote

Grand High Poobah

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

usr_12345 wrote:
How would be go about an MQInput node take input from a file (large file, about 35 to 50 mb) placed at a particular directory.


Well for a start I'd use a FileInput node to read a file not an MQInput node.

usr_12345 wrote:
When i try using test message flow, it throws an outOfMemory error.


Have you reviewed the Large Message Sample supplied with the product? Have you reviewed the InfoCenter articles on Handling Large Messages for either XML or non-XML payloads, whichever is relevant to you?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
usr_12345
PostPosted: Tue May 14, 2013 10:40 am    Post subject: Reply with quote

Novice

Joined: 14 May 2013
Posts: 11

I'm afraid i cannot use BLOB, since there's a message set (cobol) that i want to use and BLOB is not allowing that.

Regards to large file, i want to process line by line from that file but not the whole file at once, hence i did not look through the articles on large messages.

I just tried using FileInput node, but it archived the whole file without doing anything. I bet, not using the messageSet was the issue there. How can we enforce it to use message set.
Back to top
View user's profile Send private message
usr_12345
PostPosted: Tue May 14, 2013 11:00 am    Post subject: Reply with quote

Novice

Joined: 14 May 2013
Posts: 11

My bad. The record detection and delimiter were not set right, its working now with FileInput node.
Is there a record detection option for BOLB using MQInput.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue May 14, 2013 12:13 pm    Post subject: Reply with quote

Grand High Poobah

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

usr_12345 wrote:
Is there a record detection option for BOLB using MQInput.


The MQInput node (as distinct from the FileInput node) only ever reads a single message. If you want to consider it the equivalent of a FileInput node with the Records And Elements tab built in it's not a bad analogy.

With both of these nodes what you get from the Out terminal is a message tree built from what the node considers a record; either the record the File node detected or one single MQ message. If you use BLOB, there's no structure to it. If you use XMLNSC, an XML parser is associated with it. You mention a COBOL copybook so you'd use a message set. If the MQ message contains 1-n copybook records then you simply need to construct a message set which describes this, i.e. has the copybook structure as an unbounded repeating element.

Hope this clarifies things.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
usr_12345
PostPosted: Tue May 14, 2013 12:20 pm    Post subject: Reply with quote

Novice

Joined: 14 May 2013
Posts: 11

sounds good. Thanks to both of you.
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 » MQInput input file.
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.