This section describes, in alphabetical order, the attributes that are permitted in a DECLARE statement.
The discussion of each attribute assumes that the attributes have been made complete by the application of defaults, as described
in the section
Defaults.
Each attribute discussed in this section falls into one of the following categories:
- Arithmetic or string data attributes, which define arithmetic or string data.
-
ALIGNED
-
BIGENDIAN
-
BINARY
-
BIT
-
CHARACTER
-
DECIMAL
-
FIXED
-
FLOAT
-
NATIVE
-
NONNATIVE
-
PICTURE
-
REAL
-
SIGNED
-
UNALIGNED
-
UNSIGNED
-
VARYING
- Data type attributes, which apply to program data not used for computation.
-
AREA
-
CONDITION
-
DIMENSION
-
ENTRY
-
EXCLUSIVE
-
FILE
-
LABEL
-
LIKE
-
OFFSET
-
POINTER
-
TYPE
- Storage class and scope attributes, which control the allocation and storage use for a data variable and define the variable's
scope.
-
AUTOMATIC
-
BASED
-
CONTROLLED
-
CONNECTED
-
DEFINED
-
EXTERNAL
-
GLOBALDEF
-
GLOBALREF
-
INITIAL
-
INTERNAL
-
NOINIT
-
NONCONNECTED
-
PARAMETER
-
POSITION
-
READONLY
-
REFER
-
STATIC
-
UNION
- File description attributes, which can be applied to file constants or may be used in OPEN statements (except ENVIRONMENT,
which can be used only in the DECLARE statement).
-
DIRECT
-
ENVIRONMENT
-
INPUT
-
KEYED
-
OUTPUT
-
PRINT
-
RECORD
-
SEQUENTIAL
-
STREAM
-
UPDATE
- Entry name attributes, which can be applied to identifiers of entry points. These include:
-
BUILTIN
-
ENTRY
-
IRREDUCIBLE
-
OPTIONS(DESCRIPTOR)
-
OPTIONS(NODESCRIPTOR)
-
OPTIONS(VARIABLE)
-
REDUCIBLE
-
RETURNS
-
VARIABLE
- Argument-passing attributes, which describe parameters of external procedures. These include:
Note:
File description attributes specified in a DECLARE statement apply to all openings of the file control block associated with
the file constant. For further discussion of these attributes, see the sections
Input and Output in
Language Concepts and
OPEN in
Statements.