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
Why would you use find and get rather than to obtain?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
Mention the guidelines to write a structured cobol program?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
) what is the difference between AID and HANDLE AID?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
In which area will you utilize 88 level items in cobol?
How can you get the ksds file records into your cobol program?
What are the various section in data division and briefly explain them.
What is Pic 9v99 Indicates in COBOL?
What are the different rules for performing sort operation?
What is the difference between binary search and sequential search?
How do define dynamic array in cobol.
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
For rewrite, why is it mandatory that file needs to be opened?