Page 4 of 4

Re: How to initialize the array/table in cobol ?

PostPosted: Sun Sep 09, 2012 1:59 pm
by BillyBoyo
Whoops... Mental Note: Calculating a value of 138 (142 minus length of the comp-3 field) DOES NOT actually cause the source line to change.

Although there is a "drop off" in the performance gain, which is also not "converging", I can no longer reasonably get the MOVE to be outdone by the INITIALIZE.

Re: How to initialize the array/table in cobol ?

PostPosted: Sun Sep 09, 2012 6:34 pm
by dick scherrer
Howdy,

Changed all OCCURS to 25000.

With MOVE
START 2012253.0757                 
STOP  2012253.0758 CPU    0MIN 13.28

With INITIALIZE
START 2012253.0800                 
STOP  2012253.0802 CPU    1MIN 40.98


They both took longer, but the INITIALIZE is still much more expensive.