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

write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

986


how do you reference the rrds file formats from cobol programs

1165


How do you get the data to code the BMS macro?

1706


how do you reference the fixed unblock file formats from cobol programs

932


What is the local-storage section?

891


What is the default value(s) for an initialize and what keyword allows for an override of the default?

959


What is the usage of comp fields in cobol?

880


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

976


Which division and paragraphs are mandatory for a COBOL program?

926


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

964


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1989


What are various search techniques in cobol? Explain.

873


Explain the configuration section of a cobol program with examples of syntax.

869


How many sections are there in data division in COBOL?

892


How do we get current date from system with century in COBOL?

1066