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
What is amode(31)
What is the LINKAGE SECTION used in COBOL?
Have you used comp and comp-3 in your project? And how?
How can you get the ksds file records into your cobol program?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
What are the rules of the move verb?
How do u write test cases?
What is the use of intialize verb?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
Name some of the examples of COBOl 11?
what is amode(24), amode(31), rmode(24) and rmode(any)?
how do you reference the variable unblock file formats from cobol programs
How arrays can be defined in COBOL?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?