by Robert Sample » Thu Mar 12, 2020 6:52 pm
What kind of variables do you have INITIALIZE on? If you are using INITIALIZE for elementary variables, you will see no improvement in CPU time or efficiency -- for elementary items, MOVE and INITIALIZE work exactly the same. For group variables, you may -- or may not -- see any improvement in CPU time and efficiency since such improvements would depend upon a number of factors. The only way to know for sure that there is an improvement to actually make the change and review the results.
I have seen major improvements in going from INITIALIZE to MOVE -- but the specific situation was the INITIALIZE was for a million-byte table (99 occurrences of 9,999 bytes) where the MOVE was only used to clear the 15 occurrences actually being used. And the INITIALIZE / MOVE statements were being executed about 2 million times per program execution. YMMV.