Naming conventions

This topic describes the rules for naming parts and variables and for assigning values to properties such as name.

EGL has three categories of identifiers:
An EGL part or variable name is a series of 1 to 128 characters. Except as noted, a name must begin with a letter or an underscore and can include additional Unicode letters as well as digits and currency symbols. The following additional restrictions apply:
Special considerations apply to parts:

Compatibility

Table 1. Compatibility considerations for naming conventions
Platform Issue
COBOL generation Names of generated outputs are truncated to conform to the maximum permitted lengths, which vary by part type:
  • Service and Interface part names have a 7-character maximum.
  • Program and Library part names have an 8-character maximum on zSeries, and a 7-character maximum on iSeries®.
  • FormGroup part names have a 6-character maximum.
  • Form part names have an 8-character maximum.
  • DataTable part names have a 7-character maximum.
VisualAge Generator compatibility mode The following rule applies to part and variable names but has no effect on package names: Characters after the initial character can include "at" signs (@), hyphens (-), and pound signs (#).

Feedback