how can we code index in an array of cobol pgm?
Answer Posted / jenny
It can be done in two ways:
1.Using the INDEXED BY phrase on the OCCURS clause.
2.index can be defined(as a working storage variable) with
USAGE IS INDEX clause.
In either case the index is set, icreased or decreased
using the SET verb in the Procedure Division.
| Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
When is inspect verb is used in cobol?
How do u write test cases?
Describe the cobol database components?
What is the Purpose of Pointer in the string?
how do you reference the esds vsam file formats from cobol programs
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is link edit in cobol?
Write a program to explain size error.
What is the difference between comp and comp-3?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What are the different open modes available in cobol?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How do you reference the fixed block file formats from cobol programs
How do you get the data to code the BMS macro?