Learn Big data, lot of career options+Find Jobs+Apply NowYou can refer my posts on INDEXED BY and KEY IS of a Table.

Subscript:

  • Subscript should be an integer.
  • It should have working storage definition
  • Subscript can be passed to a sub-program
  • Subscript varies from 1 to size of OCCURS
  • Subscript references a Table item

INDEX:

  • INDEXED BY xxxx phrase must be defined for an array/table
  • INDEX cannot be passed to a sub-program
  • It does not require working storage definition
  • INDEX varies from 1 to size of OCCURS
  • INDEX references table item, it is an internal representation
  • INDEX gives good performance compared to subscript
Advertisements