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
Name the sections present in data division.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Difference between array and sub-script ?
What are the pertinent COBOL commands?
How do get the result of your program directly on your pc?
Difference between cobol and cobol-ii?
What are various search techniques in cobol? Explain.
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the difference between next sentence and continue in cobol programing language?
What are different data types in cobol?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How do you reference the fixed block file formats from cobol programs