5.3.7 EXTERNAL Clause
The EXTERNAL clause specifies that the storage associated with a data item
X is associated with the run unit rather than with any particular program or
X method within the run unit. An external data item can be referenced by
X any program or method in the run unit that describes the data item.
X References to an external data item from different programs or methods
using separate descriptions of the data item are always to the same data
item. In a run unit, there is only one representative of an external data
The EXTERNAL clause can be specified only in data description entries
whose level-number is 01. It can only be specified on data description
X entries that are in the Working-Storage Section of a program or method.
It cannot be specified in Linkage Section or File Section data description
entries. Any data item described by a data description entry subordinate
to an entry describing an external record also attains the EXTERNAL
attribute. Indexes in an external data record do not possess the external
The data contained in the record named by the data-name clause is external
X and can be accessed and processed by any program or method in the run unit
that describes and, optionally, redefines it. This data is subject to the
- X If two or more programs or methods within a run unit describe the same
external data record, each record-name of the associated record
description entries must be the same and the records must define the
X same number of standard data format characters. However, a program or
X method that describes an external record can contain a data
description entry including the REDEFINES clause that redefines the
complete external record, and this complete redefinition need not
occur identically in other programs or methods in the run unit.
- Use of the EXTERNAL clause does not imply that the associated
data-name is a global name.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
IBM Hardware |
IBM System z Redbooks
How to order publications
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Download IBM Softcopy Librarian
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.