How to initialize the array/table in cobol ?



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

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

Postby BillyBoyo » Sun Sep 09, 2012 1:59 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

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

 

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

Postby dick scherrer » Sun Sep 09, 2012 6:34 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post