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 » Other ideas for counting lines of large file

Post new topic  Reply to topic Goto page Previous  1, 2, 3
 Other ideas for counting lines of large file « View previous topic :: View next topic » 
Author Message
Esa
PostPosted: Tue May 13, 2014 11:40 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

rramasu wrote:
Hi esa,

Could you provide the peices of code to count the lines from BLOB char


I'm sorry but I don't have the code any more. But the basic idea must have been to use an ESQL shared variable for counting the rows. No need for atomic blocks because the flow should run with no additional instances.

You cannot count lines of a BLOB, by the way. You must always parse the message somehow. A BLOB is just a sequence of bytes with no structure.It has no concept of 'lines' or 'rows'.
Back to top
View user's profile Send private message
Simbu
PostPosted: Wed May 14, 2014 2:17 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India

Count the number of X'0d0a' or X'0a' in the BLOB. It will give you the number of lines in the BLOB.
Back to top
View user's profile Send private message
Esa
PostPosted: Wed May 14, 2014 2:46 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

That's correct.

My example code that rramasu requested counted the number of records, which may not be the same thing.

But if counting lines is what is required then counting linefeeds should do fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2, 3 Page 3 of 3

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Other ideas for counting lines of large 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.