Library part

Library parts support the sharing of functions and variables.
A Library part has the following characteristics:

For more information on libraries, see Introduction to Library parts.

For information on library properties, see Library properties.

Syntax

Syntax for the Program part
libraryName
The name that you assign to the library.
libraryType
A stereotype to specialize the library.
libraryFunctions
EGL functions that other logic parts can call from this library. Other logic parts cannot call Library functions that are labeled with the private keyword.
libraryVars
Variables or constants that other logic parts can reference from this library. Other logic parts cannot reference Library variables that are labeled with the private keyword.

Compatibility

Table 1. Compatibility considerations for Library parts
Platform Issue
COBOL generation The maximum length for a generated library name is 8 characters.
JSF A JSF handler gets a new copy of the library whenever the handler is loaded.
Rich UI For details on Rich UI compatibility issues, see EGL Rich UI.
Text UI Library functions cannot use the converse, display, or show statements, nor access text forms. A library that accesses a print form must include a use statement for the related form group. The library is reloaded when a segmented Text UI program does a converse or show.
Web transactions Library functions cannot use the converse or show statements. Web transactions area always segmented, so the Library is reloaded when the program does a converse or show.

Feedback