Don't.

Use occurs depending on or keep track of number of entries in a separate
variable.

Populate entries as needed.   All valid entrIes are initialized when
populated.

Restrict subsequent operations to number of rows in table.
On Aug 11, 2014 6:37 PM, "Ron Thomas" <[email protected]> wrote:

> Hello.
>
> 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.
>
> Thanks
> Ron T
>
> ----------------------------------------------------------------------
> 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