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


Please Help Members By Posting Answers For Below Questions

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

714


What are various search techniques in cobol? Explain.

650


How do you get the data to code the BMS macro?

1476


how do you reference the variable block file formats from cobol programs

688


how do you reference the rrds file formats from cobol programs

803






When is inspect verb is used in cobol?

679


What is the Purpose of Pointer in the string?

644


what is the use of outrecord?

1774


What is a scope terminator give example?

659


how can i see junk values in dclgen or in hostvariable of comp ?

2546


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8172


In which area will you utilize 88 level items in cobol?

724


What type of SDLC u followed? Why?

1522


What is comp-1 and comp-2?

766


How to remove 2 duplicate records and copy only one using job control language?

755