![]() | ![]() | Programming Guide |
Interpolates the contents of another module at the current statement line
includemodule
module- The name of the module to include.
The
includecommand replaces the currentincludestatement with the contents of the specified file module. include lets you write and maintain JPL in separate modules. You can thereby avoid hard-coding the same procedure across several modules, or allocating memory for public modules. The included module can itself contain its own include statements. You can nestincludestatements up to eight levels deep.Panther looks for
moduleamong available modules in this order:
- Memory-resident modules.
- Library module in an open library.
- The current directory.
- File module in a directory specified by
sm_initcrt.- File module in a directory specified by
SMPATH.At runtime, JPL compiles and loads the included module as needed. Compilation occurs before JPL executes the primary module or procedure that contains the
includestatement. Consequently, compilation errors in the included module prevent execution of the primary module.
![]()
![]()
![]()
![]()