Creating an EGL program part
An EGL program part is the main logical unit used to generate a Java program, a Java wrapper, or an Enterprise JavaBean session bean. For more information, see Program part.
A program part is automatically added to a program file and named appropriately when you create the file in the workbench. Program file specifications allow only one program part per file, and require a program name that matches the file name.
To create a program file with a program part, do as follows:
- Identify a project or folder to contain the file. You must create a project or folder if you do not already have one.
- In the workbench, click File > New > Program.
- Select the project or folder that will contain the EGL file, then select a package. Since the program name will be identical to the file name, choose a file name that adheres to EGL part name conventions. In the EGL Source File Name field, type the name of the EGL file, for example myEGLprg. Select an EGL program type (for details, see Basic program in EGL source format or TextUI program in EGL source format ). If the program part is a main program, click to remove the check mark from Create as called program.
- Click the Finish button.
Related concepts
EGL projects, packages, and files
Introduction to EGL
Program part
Related tasks
Creating an EGL source folder
Related reference
Basic program in EGL source format
Creating an EGL source file
Naming conventions
Text UI program in EGL source format