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 are the different data types in cobol?
In which area will you utilize 88 level items in cobol?
Can we redefine the field of x(200) to less than 200?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
Write a program that uses move corresponding.
How to print 10 to 1 if the input have only 10 digit number?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
how do you reference the rrds file formats from cobol programs
What is redefines clause in COBOL?
What is Pic 9v99 Indicates in COBOL?
what are decleratives in cobol?
Why did you choose to work with ibm mainframe cobol programming?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the local-storage section?
how can i see junk values in dclgen or in hostvariable of comp ?