Initializing this way could be better than just INITIALIZE

MOVE   SPACES   TO   MY-TABLE
INITIALIZE   MY-TABLE   REPLACING   NUMERIC   BY   ZEROES.


On Tuesday, 12 August 2014 4:16 PM, Binyamin Dissen 
<[email protected]> wrote:
 


On Mon, 11 Aug 2014 20:37:05 -0500 Ron Thomas <[email protected]> wrote:

:>We have a array like this , what would be best way to initlaize this array  
in terms of performance ?

:>01  EXAMPLE-TABLE.
:>    05  MY-TABLE.
:>        10  TABLE-ENTRY OCCURS 9999 TIMES.
:>            15  FIRST-NAME         PIC X(15).
:>            15  LAST-NAME          PIC X(15).
:>            15  SEX-CODE           PIC X.
:>            15  DOB.
:>                20  DOB-YYYY       PIC 9(4).
:>                20  DOB-MM         PIC 99.
:>                20  DOB-DD         PIC 99.
:>            15  SSN                PIC 9(9).
:>            15  SALARY             PIC S9(9)V99 COMP-3.

What would you initialize it to? Why must it be initialized? Most efficient
would be to not initialize it.

--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to