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
how can i see junk values in dclgen or in hostvariable of comp ?
Write a program to explain size error.
What are the different data types in cobol?
In COBOL programming, what is PERFORM? What is VARYING?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is the difference between comp and comp-3?
) what is the difference between AID and HANDLE AID?
What is comp-1 and comp-2?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Name the sections present in data division.
Explain about different table spaces.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
) How do u handle errors in BMS macro?
Write a program to enter and display the names of students in a class using the occurs clause.
how to move the records from file to array table. give with code example