What is the difference between a subscript and an index in
a table definition?
Answer Posted / srinu
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 ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is comp-1 and comp-2?
HOw can I get the negative sign while deduct high value from low value
What is a SSRANGE and NOSSRANGE?
What type of SDLC u followed? Why?
What are the access modes of START statement?
How to print 10 to 1 if the input have only 10 digit number?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
How do you reference the following file formats from cobol programs?
What are various search techniques in cobol? Explain.
What is rmode(24)
What is the difference between a binary search and a sequential search what are the pertinent cobol?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What are 77 levels used for?
) how do u code after getting data?
Write down the divisions of cobol program?