Previous Topic: Specifying *NONE

Next Topic: Web Service Creation

Specifying a Value Other Than *NONE

A value other than *NONE for the YBNDDIR model value causes the following:

CRTBNDRPG...BNDDIR(binding-directory)

Y* ADDBNDDIRE BNDDIR(binding-directory) OBJ((source-member *MODULE))

This adds an entry for the *MODULE function to the specified binding directory at compile time. Any external functions compiled later with CRTBNDRPG…BNDDIR that call a *MODULE function use the Call Bound Procedure statement (CALLB). This improves performance. However, make sure that a called module is compiled before the program that calls it, otherwise the compilation will fail because no entry for the module will be in the binding directory. If several objects are compiled at once, the job list processing ensures this.

Note: If you use YCHGMDLVAL to change YBNDDIR to a value other than *NONE, the command processor determines whether a binding directory of that name already exists in the generation library. If it does not, a directory is created with PUBLIC(*CHANGE) authority.