|
Hello All,that
I had to write a program to write DB data to a stream file in comma
delimited format. No problem, done it many of times. Then I ran into a
problem, running the program seemed to take hours. Well, I determined
was a bad subprocedure on my part, so I fixed that and it now takesonly
about 5 minutes to run.wrote
While doing this doing this I tried a couple of other approaches. I
the data to a table and used CPYFRMIMPF to export it to a CSV, thistook
about 1 minute 40. I also wrote a simple Java program to execute anSQL
statement and write the results to a stream file, this took about 1minute
10. ** Note, there was no scientific approach to the time calculation,just
simple start and end times.write
It seems that the invocation of subprocedures in a service program
significantly slows down performance. I invoke 2 subprocedures on each
to the stream file, a replace all subprocedure and the write linewhen
subprocedure. So, for the question, what kind of overhead is there
invoking subprocedures from a service program? I'm sure there isinformation
on this, I just can't seem to find it.
Thanks in advance,
--
James R. Perkins
http://twitter.com/the_jamezp
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.