|
On Behalf Of John Yeung
On Sun, Jan 22, 2012 at 7:22 AM, CRPence <CRPbottle@xxxxxxxxx> wrote:me
On 21-Jan-2012 21:08 , John Yeung wrote:
It's interesting to see the solutions people come up with, based to a
very large extent on what they are comfortable with. "When all you
have is a hammer, all your problems start looking like nails" and all
that.
Or, the problem might just be a nail.
Absolutely. Plus, I think it's an oversimplification to imply that modern
tools are as simple and narrow-purpose as a hammer. It actually grates on
whenever I read someone say, in a computer context, "use the right toolfor
the job". I think most computer problems have many "right" tools. Itwould
be more accurate to say "don't use the wrong tool for the job", but thatis
longer and doesn't have the same ring to it, I guess.would
(And, as you imply when you say "if ..., then the best tool for the job
presumably be...", it is more often the case that there are "better" andseems to
"worse" tools, rather than "right" and "wrong" ones.)
Besides that, the OP stated that they wanted to avoid their current
proposed solution that would "create an intermediate file, with the
Last Name as a separate field". And their own solution description
which they apparently have chosen to avoid, seems little different
than the "Unixy" solution that was proposed.?
I agree. My own feeling is that, if the OP has enough disk space (he
mention the size of the file in order to impress upon us that eithermemory or
disk could be a constraint), then the most straightforward solution,my
regardless of specific language/environment, is to make an explicit
intermediate file which is more easily sorted.
I.e. in broad terms, to use OP's own solution.
You brought up another good point, which is: It could make a difference
whether the file is a physical file or a stream file. This is one reason
favorite "hammer" on the i is iSeries Python. It handles both withincredible
ease. (I didn't already suggest this route for the OP mostly because heprogram.)
seemed to be looking for solutions that don't involve writing his own
list To
John Y.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,or
change list options,moment
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.