Page 1 of 1

What is the main difference b/w Index and subscript

PostPosted: Sat Apr 19, 2008 4:23 pm
by krishna_mahathe
hello all
my Q is " what is the main difference b/w Index and subscrip :?: ".

Re: cobol

PostPosted: Sat Apr 19, 2008 5:21 pm
by dick scherrer
Hello krishna_mahathe and welcome to the forums,

A subscript is an integer that specifies the occurrence in the array. Usually defined in working-storage, but may also be a parm or data in some input record.

An index is a displacement to the entry in the array. Defined as part of the array definition.

Re: cobol

PostPosted: Sat Apr 19, 2008 7:23 pm
by arunprasad.k