Hi Every one,
I have a group variable as defined below. which is having 3100 fields... at 05 level.
01 XXXXXXXX.
02 YYYYY.
05 Z11111 PIC S9(04) COMP VALUE 0000.
05 Z22222 PIC S9(04) COMP VALUE 0000.
05 Z33333 PIC S9(04) COMP VALUE 0000.
05 Z44444 PIC S9(04) COMP VALUE 0000.
. .
.
3100 variables at 05 level.
02 AAAAA REDEFINES YYYYY OCCURS 3100 TIMES
05 BBBBBBBBBB PIC S9(04) COMP.
We are using key word INITIALIZE in cobol code to initiliase whole group(INITIALIZE XXXXXXXX) and we are doing this around 20 times in a single program which is critical module and cosumes much of CPU.. we are in process of fine tune it.
If we replace INITIALIZE with MOVE ZEROS to XXXXXX, Will there be any impact .. ?, if so what are possible issue we will come across.
Thanks,