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
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
What are various search techniques in cobol? Explain.
How do you get the data to code the BMS macro?
how do you reference the variable block file formats from cobol programs
how do you reference the rrds file formats from cobol programs
When is inspect verb is used in cobol?
What is the Purpose of Pointer in the string?
what is the use of outrecord?
What is a scope terminator give example?
how can i see junk values in dclgen or in hostvariable of comp ?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
In which area will you utilize 88 level items in cobol?
What type of SDLC u followed? Why?
What is comp-1 and comp-2?
How to remove 2 duplicate records and copy only one using job control language?