how can we code index in an array of cobol pgm?



how can we code index in an array of cobol pgm?..

Answer / 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

More COBOL Interview Questions

what is record label is empty or standard in file description of data division?

2 Answers   HCL,


What is rmode(24)

0 Answers  


copy 100 records without using ibm utilities

3 Answers  


IF there 5 to 6 files in a JCL and there is some space abends, how can we identify which file has space abend and what can be done to get off that abend or rectify that abend.

2 Answers   ADNA, CSC,


how to submit a jcl by cobol program. clear me with an example.

3 Answers   HCL,






What is perform what is varying?

0 Answers  


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

0 Answers   DELL,


What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?

3 Answers   Patni,


What is SET TO TRUE all about, anyway?

5 Answers  


how many divisions are there in cobol

3 Answers   ADP,


What is a scope terminator? Give examples.

2 Answers  


Categories