A program part defines the central logic in a runtime program.
Program parts have the following characteristics:
- Each Program part has a single entrypoint. That entrypoint is
the required main() function, which represents the
logic that runs at program startup and invokes other functions.
- A Program can also include other functions and can access functions
that are outside of the Program part.
- Program parts use stereotypes to specialize code for user interfaces.
The BasicProgram is the only stereotype
that is part of the core EGL package. A basic program can access databases
or files, perform calculations, and use most of the EGL statements.
However, a basic program cannot communicate with the user through
a browser, 3270 screen, or other interface. Some UI technologies
offer additional stereotypes. See the related reference links at
the end of this topic for the technologies that you might be using.
- Many properties are available at the Program level that affect
code behavior. For more information, see Program properties.
- You can define either main programs (defined without parameters)
or called programs (defined with parameters). For more information,
see Introduction to Program parts.
For more information about Program parts, see Introduction to Program parts.