iSeries® Record definitions
EGL provides Record definitions that correspond to objects in the iSeries® environment.
Use variables based on these Records in the iSeries® access function calls that EGL provides.
The following Record definitions are available:
Record SystemDefinition type BasicRecord
systemName string;
userId string;
password string;
end
Record DataAreaDefinition type BasicRecord
areaname char(10);
libname char(10);
areaType int;
systemDef SystemDefinition;
path string?;
end
Record DataQueueDefinition type BasicRecord
qname char(10);
libname char(10);
keyed boolean;
systemDef SystemDefinition;
path string?;
end
Record iDataAccessException type Exception{message = "lib.iDataAccessException: "}
functionName string;
path string;
exception AnyException;
end
For a DataAreaDefinition record, use one of the following constants
to specify the areaType:
- DATA_AREA_TYPE_CHAR
- Interpret the contents of the data area as text.
- DATA_AREA_TYPE_DEC
- Interpret the contents of the data area as a decimal number.
- DATA_AREA_TYPE_LOG
- Interpret the contents of the data area as a Boolean.
The simplest way to add these files to your workspace is to add the EGL with IBM i objects support feature to your project. For more information, see Features and facets of EGL projects.