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 an EGL source file and named appropriately
when you create the file in the workbench. Source 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 , or VGWebTransaction program in EGL source
format). If the program part is a main program, click to remove the check
mark from Create as called program. A VGWebTransaction program cannot be called
from another program.
- Click the Finish button.