What is the main difference b/w Index and subscript



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

What is the main difference b/w Index and subscript

Postby krishna_mahathe » Sat Apr 19, 2008 4:23 pm

hello all
my Q is " what is the main difference b/w Index and subscrip :?: ".
krishna_mahathe
 
Posts: 1
Joined: Sat Apr 19, 2008 4:00 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What is the main difference b/w Index and subscript

 

Re: cobol

Postby dick scherrer » Sat Apr 19, 2008 5:21 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: cobol

Postby arunprasad.k » Sat Apr 19, 2008 7:23 pm

arunprasad.k
 
Posts: 110
Joined: Thu Dec 27, 2007 5:18 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post