What is the difference between a subscript and an index in
a table definition?

Answer Posted / mftech

Subscript is the occurance number in the arrary of element.
Fr e.g., an array has only one itme that repeats for 20
times, in order to refer to 10th itme in this array, you
can say ITEM(20). This '20' can be replaced by a WS
variable having value = 20.

Index: It is the displacement from the begining. if you
remember, when we use Index in a loop, then we do not code
Move 2 to WS-INDEX. We have to code. We need to set the
index to zero and then increament.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are decleratives in cobol?

1992


What are the access modes of START statement?

926


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

895


Which Search verb is equivalent to PERFORM…VARYING?

852


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

2745


What is the difference between a binary search and a sequential search what are the pertinent cobol?

917


How do you reference the fixed block file formats from cobol programs

905


Define cobol?

1064


Name the sections present in data division.

893


how do you reference the rrds file formats from cobol programs

1130


What are various search techniques in cobol? Explain.

854


What is the difference between perform … with test after and perform … with test before?

1136


What is rmode(24)

893


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2117


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

994