The DEF_ARRAY command is used to define an array structure within an RDML function.
The array created by this command can be used for:
This command provides full array support to LANSA applications.
However, it must be emphasized that the use of array constructs in database files is NOT considered to be the best long-term strategy in terms of relational database design.
This facility is provided as a concession to reality. Array structures within files provide better system performance than fully normalized relational database designs.
However, the presence of this facility should not be construed in any way as encouraging the use of array structures in database designs.
Whenever hardware resources permit, a fully relational design will always yield a simpler, easier-to-use, easier-to-maintain, and longer-lasting solution.
7.20.2 DEF_ARRAY Comments / Warnings
Required DEF_ARRAY ---- NAME --------- #name of array -----------------> >-- INDEXES ------- #index field name ---------------> >-- OF_FIELDS ------- #field name ---------------------> -- OR -- >-- OVERLAYING --- #field name -- start position ------> ----------------------------------------------------------------------- >-- TYPE --------- *CHAR *DEC *PACKED *SIGNED -----> >-- TOT_ENTRY --- total entries (1-9999) --------------> >-- ENTRY_LEN --- entry length (1-256) ---------------> >-- ENTRY_DEC --- number of decimals (0-9) -----------| |