Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

5.3.10.3 INDEXED BY Phrase



The INDEXED BY phrase specifies the indexes that can be used with a table. The INDEXED BY phrase is required if indexing is used to refer a this table element. See "Subscripting Using Index-Names (Indexing)" in topic 1.5.1.8.2.


X A table without an INDEXED BY option can be referred to through indexing.

Indexes normally are allocated in static memory associated with the program containing the table. Thus, indexes are in the last-used state
X when a program is reentered. However, in the following cases, indexes are
X allocated on a per-invocation basis. Thus, you must SET the value of the
X index on every entry for indexes on tables in the:

Note: Indexes specified in an External data record do not possess the external attribute.

index-name-1
Must follow the rules for formation of user-defined words. At least one character must be alphabetic.

Each index-name specifies an index to be created by the compiler for use by the program. These index-names are not data-names, and are not identified elsewhere in the COBOL program; instead, they can be regarded as private special registers for the use of this object program only. They are not data, or part of any data hierarchy.


X As an IBM extension, unreferenced index names need not be uniquely
X defined.

In one table entry, up to 12 index-names can be specified.

If a data item possessing the GLOBAL attribute includes a table accessed with an index, that index also possesses the GLOBAL attribute. Therefore, the scope of an index-name is identical to that of the data-name which names the table whose index is named by that index-name and the scope of name rules for data-names apply.


Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.