Answer Posted / jswan
You can't directly display the Index. But you can create a normal numeric field in your working storage and set that to the Index.
Example:
01 WS-TABLE.
05 WS-CUSTOMER PIC X(25) OCCURS 10 INDEXED BY INDEX1.
01 WS-NUMERICS.
05 WS-INDEX-COUNT PIC 9(02) VALUE 0.
SET WS-INDEX-COUNT TO INDEX1.
DISPLAY WS-INDEX-COUNT.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is link edit in cobol?
how do you reference the rrds file formats from cobol programs
how can i see junk values in dclgen or in hostvariable of comp ?
how to refer the data field?
What is the usage of comp fields in cobol?
Write some characteristics of cobol as means of business language.
Name the divisions, which are available in a cobol program?
What guidelines should be followed to write a structured cobol prgm?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is the LINKAGE SECTION used in COBOL?
What is difference between static and dynamic call in cobol?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
When is inspect verb is used in cobol?
Which is not true about evaluate statement