Program data other than parameters

The syntax diagram for program data is as follows:

Syntax diagram for program data other than parameters
use useEntry
Provides easier access to a dataTable or library, and is needed to access to forms in a formGroup. For details, see Use declaration.
dataItemName
Name of a primitive field. For the rules of naming, see Naming conventions.
primitiveType
The type of a primitive field or (in relation to an array) the primitive type of an array element. Depending on the type, the following information may be required:
  • The parameter's length or (in relation to an array), the length of an array element. The length is an integer that represents the number of characters or digits in the memory area.
  • For some numeric types, you may specify an integer that represents the number of places after the decimal point. The decimal point is not stored with the data.
  • For an item of type INTERVAL or TIMESTAMP, you may specify a datetime mask, which assigns a meaning (such as "year digit") to a given position in the item value.

For details, see Primitive types and the topic for a given type.

dataItemPartName
The name of a dataItem part that is visible to the program. For details on visibility, see References to parts.

The part acts as a model of format, as described in Typedef.

size
Number of elements in the array. If you specify the number of elements, the array is initialized with that number of elements.
set-value block
For details, see Overview of EGL properties and Set-value blocks
recordName
Name of a record. For the rules of naming, see Naming conventions.
recordPartName
Name of a record part that is visible to the program. For details on visibility, see References to parts.

The part acts as a model of format, as described in Typedef.

const constantName primitiveType=literal
Name, type, and value of a constant. Specify a quoted string (for a character type); a number (for a numeric type); or an array of appropriately typed values (for an array). Examples are as follows:
  const myString String = "Great software!";
  const myArray  BIN[] = [36, 49, 64];
  const myArray02 BIN[][] = [[1,2,3],[5,6,7]];

For the rules of naming, see Naming conventions.

Related concepts
EGL projects, packages, and files
Overview of EGL properties
Parts
Program part
References to variables in EGL
Segmentation in text applications
Set-value blocks
Syntax diagram for EGL statements and commands
Typedef

Related reference
Arrays
Data initialization
DataItem part in EGL source format
DataTable part in EGL source format
EGL source format
EGL statements
forward
Function part in EGL source format
Indexed record part in EGL source format
Input form
Input record
INTERVAL
I/O error values
MQ record part in EGL source format
Naming conventions
Primitive types
Relative record part in EGL source format
Serial record part in EGL source format
SQL record part in EGL source format
TIMESTAMP
VGUIRecord part in EGL source format
Use declaration

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.