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
Why would you use find and get rather than to obtain?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
how do you reference the ksds vsam file formats from cobol programs
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Define cobol?
What is the usage of comp fields in cobol?
Explain the configuration section of a cobol program with examples of syntax.
how do you reference the rrds file formats from cobol programs
What is perform what is varying?
In COBOL programming, what is PERFORM? What is VARYING?
How arrays can be defined in COBOL?
What are the cobol coding sheets?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?