DEFINE DATA

#### Search Results

Search

# DEFINE DATA

`DEFINE DATA`
`[``GLOBAL` `USING` global-data-area [`WITH` block [`.`block] ]`]`
| `PARAMETER` |  | `USING` parameter-data-area parameter-data-definition |  |  |  |  |
| `LOCAL` |  | `USING` |  | local-data-area parameter-data-area |  |  |  |
local-data-definition |
`[``INDEPENDENT` `[`aiv-data-definition `]]`
| `CONTEXT` |  | `USING` |  | local-data-area parameter-data-area |  |  |  |
context-data-definition |
| `OBJECT` |  | `USING` |  | local-data-area parameter-data-area |  |  |  |
local-data-definition |
`END-DEFINE`

For an explanation of the symbols used in the syntax diagram, see Syntax Symbols.

Related topics in the Programming Guide: Use and Structure of DEFINE DATA Statement | Data Areas | Storage Alignment

The `DEFINE DATA` documentation is organized under the following headings:

- Function and Basic Syntax Rules

Data Definitions:

- Defining Global Data

- Defining Parameter Data

- Defining Local Data

- Defining Application-Independent Variables

- Defining Context Variables for Natural RPC

- Defining NaturalX Objects

Clauses and Options:

- Variable Definition

- View Definition

- Redefinition

- Array Dimension Definition

- Initial-Value Definition

- Initial/Constant Values for an Array

- EM, HD, PD Parameters for Field/Variable

Examples:

- Examples of DEFINE DATA Statement Usage