How can we print index in COBOL? And is it readable?Please advise.
[ Post made via Android ]



If you are not talking about INDEX variables, you will need to explain more about what you mean.identifier-1
Identifier-1 references the data that is to be displayed. Identifier-1 can reference any data item except an item of usage PROCEDURE-POINTER, FUNCTION-POINTER, OBJECT REFERENCE, or INDEX. Identifier-1 cannot be an index-name.
An INDEX is used at the time of defining a COBOL Table, that's what I am talking about.
Thanks Robert. That's what I meant but in the quote what is the difference between INDEX and index-name? Are they not just same?Robert Sample wrote: Wed Nov 21, 2018 8:12 amIf you are talking about INDEX variables in COBOL, this information from the DISPLAY statement in the Enterprise COBOL Language Reference manual is relevant:
identifier-1
Identifier-1 references the data that is to be displayed. Identifier-1 can reference any data item except an item of usage PROCEDURE-POINTER, FUNCTION-POINTER, OBJECT REFERENCE, or INDEX. Identifier-1 cannot be an index-name.
If you are not talking about INDEX variables, you will need to explain more about what you mean.

Nope -- indexes can be defined with USAGE INDEX or they can be defined with INDEXED BY in a table definition.Are they not just same?
You need to be a member in order to post a reply
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute