is it possible to declare index in cobol program?
if it is not why its tell me pls

Answer Posted / amjith pillai

No need to 'Declare' Index in working Storage section.since
Index is internally represented by 'Index Register' which
is Full-Word binary.

Yes, you can directly mention Index in Occurs clause and
can increment and re-positioning the index variable

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

518


Have you used comp and comp-3 in your project? And how?

2087


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

983


Whats the difference between search & search ALL?

5559


Give some examples of command terminators?

854






what is search and searchall?what is the diffrence between them?give an best example?

5889


What is the utilization of copybook in cobol?

768


how to refer the data field?

1908


What is the difference between structured cobol programming and object alternativelyiented cobol?

858


Discuss about changing dataset name in proc.

844


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2841


Explain what you understand by passing by value.

807


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

800


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

853


Differentiate between structured cobol programming and object-oriented cobol programming.

752