5 Key differences of INDEX and Subscript for COBOL programmers

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 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


  • 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

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.