Primitive data types
Primitive data types are standard predefined types that you can use as the basis for variables, record fields, or your own DataItem parts. Though exact names may vary, many of these types (like INT) are common to most programming languages. COBOL and other procedural languages often refer to these types as "elementary items" because they are not based on any other type.
EGL includes a number of these primitive types (such as PACF) for compatibility with existing data or programs.
The categories of primitive
types include:
There are also special primitive types that you can use only for function parameters; see Loose types.
Other
entities also have a primitive type:
- A system variable (such as sysVar.returnCode) has a primitive type that is specific to the variable
- You can assign a type to a character literal (STRING by default). See Literals.
Additional details are available in the topics that cover assignments, logical expressions, function invocations, and the call statement.