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 the difference between external and global variables in COBOL?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
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
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Explain about different table spaces.
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
how do you reference the printer file formats from cobol programs
How do you reference the following file formats from cobol programs?
Define static linking and dynamic linking.
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?