Exforsys
+ Reply to Thread
Results 1 to 2 of 2

cobol

This is a discussion on cobol within the COBOL forums, part of the Programming Talk category; what is the difference b/w index and subscript?...

  1. #1
    deepika258 is offline Junior Member Array
    Join Date
    Sep 2007
    Answers
    2

    cobol

    what is the difference b/w index and subscript?


  2. #2
    rachelle is offline Member Array
    Join Date
    Apr 2006
    Answers
    97
    Here is the basic difference ....

    Subscript represents occurrence # of the Table Entry. Subscript can be represented explicitly and implicitly. Explicitly means thru occurrence # of the table entry; implicitly means thru a data name. That data name should be defined as an independent item in the W-S Section. The most efficient definition of Subscript is Full-Word binary.

    A Index is assigned to specific table thru INDEXED BY clause. Internally is represented by Index Register which is Full-Word binary. Specific index name can be used to reference a field from the table to which that index is assigned to index represents displacement value of the table entry from the beginning of the table.


Latest Article

Network Security Risk Assessment and Measurement

Read More...