I am a programmer working on IBM AS400 V5R4. I create 2 CL programs, both of which use CPYTOIMPF to format a list of AS400 PFs to character delimited files. The difference between them is: one formats files to qtemp(PGM A), while the other one formats files to a library other than qtemp(PGM B).
I called the 2 program separately to format about 90 files, with total about 8 million records. Both of the programs consumed more than 1300s CPU time, while PGM A used about 5% less CPU time than PGM B. I have tryied several times and the result is similar.
May I know why CPYTOIMPF to qtemp is faster than copy to other library, though just a little difference?