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 do get the result of your program directly on your pc?
) How do u handle errors in BMS macro?
what is the use of outrecord?
How arrays can be defined in COBOL?
What is a SSRANGE and NOSSRANGE?
how to access the file from prodution from changeman tool and to submit a file to production
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
What is a scope terminator give example?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is link edit in cobol?
How do you reference the following file formats from cobol programs?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How many bytes S(8) comp field occupy and its maximum value?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Why did you choose to work with ibm mainframe cobol programming?