The EGL package statement assigns a name to a collection of related parts.
All EGL source files should contain a package statement. Any number of files can belong to the same package, therefore a package can contain multiple package statements (one for each source file). If you do not specify a package statement in a file, the file is stored directly in the source folder and is said to be in the default package. Parts in the default package cannot be shared by parts in other packages or projects. For this reason, avoid using the default package by always specifying a package statement.
Two parts with the same name cannot be defined in the same package. You should also avoid using the same package name under different projects or different folders.
com.CompanyB.Customer
Each name corresponds to a subfolder, so the directory structure for the previous example is financialProjects\EGLSource\com\CompanyB\Customer. When EGL creates directories in the Java™ Resources directory, it changes all names to lower case. This is because EGL is not case sensitive, but Java is.
package com.companyb.customer; Record CustomerRecord type SQLRecord { keyItems=["customerNumber"] } customerNumber INT; // key item customerName STRING; customerBalance DECIMAL(9,2); end Library CustomerLib myCustomer CustomerRecord; getCustomer() ... end // end function end // end libary