I am a programmer working on an IBM AS400 V5R4. I am creating 2 CL programs, both of which use CPYTOIMPF to format the ASF00 PF list for character delimited files. The difference between the two: one formats files in qtemp (PGM A), and the other files in a library other than qtemp (PGM B).
I named program 2 separately to format about 90 files, about 8 million records in total. Both programs consumed more than 1300 s of processor time, while PGM A used about 5% less CPU time than PGM B. I tried several times, and the result is similar.
Can I find out why CPYTOIMPF for qtemp is faster than copying to another library, although there is a slight difference?
source share