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 are the different rules to perform a Search?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
Explain what you understand by passing by value.
What are the different open modes available in cobol?
Why occurs cannot be used in 01 level in COBOL?
how do you reference the variable unblock file formats from cobol programs
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What type of SDLC u followed? Why?
In which area will you utilize 88 level items 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...)
Why did you choose to work with ibm mainframe cobol programming?
Explain about different table spaces.
What is rmode(any) ?
how do you reference the fixed unblock file formats from cobol programs
what are decleratives in cobol?