What is the difference between index and subscript?

Answer Posted / harish

subscript normal variable dec in w-s section.
index cant

subscript can be accepted or displayed
for index set index up by value down by value..

subscript- arithmetic operation is possible..


subscript refers to array occurance,
index refers to the displacement of start of the array



pls correct me if anything wrong

HARISH POOMGAME SHIVAPPA(hassan,karnataka)
NIIT TECHNOLOGY
KOLKATA

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 77 levels used for?

658


Explain how to differentiate call by context by comparing it to other calls?

683


What is the local-storage section?

681


Which division and paragraphs are mandatory for a COBOL program?

707


how can i see junk values in dclgen or in hostvariable of comp ?

2542






how do you reference the ksds vsam file formats from cobol programs

664


What is the difference between goback, stop run and exit program in cobol?

920


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6822


What kind of error is trapped by on size error option?

740


how do you define single dimensional array and multidimensional array in your cobol?

669


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2106


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2093


Write the code to count the sum of n natural numbers.

697


Name the divisions, which are available in a cobol program?

683


what is search and searchall?what is the diffrence between them?give an best example?

5540