Program parameters

The syntax diagram for a program parameter is as follows:


Syntax diagram for a program parameter
dataItemName
Name of a primitive field. For the rules of naming, see Naming conventions.
primitiveType
The type of a primitive field. Depending on the type, the following information may be required:
  • The parameter's length, which 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.
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.

formPartName
Name of a form.

The form must be accessible through a formGroup that is identified in one of the program's use declarations. A form accessed as a parameter cannot be displayed to the user, but can provide access to field values that are passed from another program.

For the rules of naming, see Naming conventions.

recordName
Name of a record or fixed record. For the rules of naming, see Naming conventions.
recordPartName
Name of a record part (or fixed-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.

The following statements apply to input or output (I/O) against record parameters:

An arguments sent from another EGL program must be reference-compatible with the related parameter. For details, see Reference compatibility in EGL.

Related concepts
Program part
References to parts
References to variables in EGL
Syntax diagram for EGL statements and commands
Typedef

Related reference
Arrays
Basic record part in EGL source format
DataItem part in EGL source format
EGL source format
Indexed record part in EGL source format
INTERVAL
Naming conventions
Primitive types
Reference compatibility in EGL
Relative record part in EGL source format
Serial record part in EGL source format
SQL record part in EGL source format
TIMESTAMP

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