How can we print index in COBOL?
How can we print index in COBOL?
Hi
How can we print index in COBOL? And is it readable?Please advise.
[ Post made via Android ]
How can we print index in COBOL? And is it readable?Please advise.
[ Post made via Android ]
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: How can we print index in COBOL?
If you are talking about INDEX variables in COBOL, this information from the DISPLAY statement in the Enterprise COBOL Language Reference manual is relevant:
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.
Re: How can we print index in COBOL?
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.
Re: How can we print index in COBOL?
When you referred to the COBOL manual what did you find out?
Regards
Nic
Nic
- Robert Sample
- Global Moderator
- Posts: 1896
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: How can we print index in COBOL?
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?
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
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