EFFICIENT CODING FOR TABLES - IBM Mainframe

For efficient table handling, follow these suggestions:

  • If the table is searched sequentially put the data values most likely to satisfy the search criteria at the beginning of a table.
  • Using index-names instead of subscripts is more efficient, but subscripting may be easier to understand and maintain. Relative index references are executed as fast as direct index references.
  • Use binary (COMP) data items with 8 or fewer digits for subscripts and OCCURS DEPENDING ON objects. Use fewer than 5 digits, if possible.
  • Avoid referencing errors by coding subscript and index checks into your program.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

IBM Mainframe Topics