CL Command Reference - ADDBNDDIRE

CL Command List > ADDBNDDIRE Reference

Description:

The Add Binding Directory Entry (ADDBNDDIRE) command adds an entry to a binding directory.

Restrictions:

. You must have use (*USE) authority for the library where the binding directory to be changed is located.

. You must have object operational (*OBJOPR) and add (*ADD) authorities to the binding directory to be changed.

. You must have execute (*EXECUTE) authority to the specified library when a generic name is specified for the Object specifications (OBJ) parameter.


Examples:

Example 1: Add Entry to End of List

ADDBNDDIRE BNDDIR(TESTBNDDIR) OBJ((TESTOBJ)) POSITION(*LAST)

This command adds a binding directory entry for service program TESTOBJ in library *LIBL to the end of the list of binding directory entries found in the binding directory TESTBNDDIR.


Example 2: Add Entry to Beginning of List

ADDBNDDIRE BNDDIR(TESTBNDDIR) OBJ((TESTLIB/TESTOBJ *MODULE)) POSITION(*FIRST)

This command adds a binding directory entry for module TESTOBJ in library TESLIB to the beginning of the binding directory entries found in the binding directory TESTBNDDIR.


Example 3: Add Multiple Entries

ADDBNDDIRE BNDDIR(TESTBNDDIR)
OBJ((TESTLIB/TESTOBJ *MODULE) (TESTOBJ2))
POSITION(*FIRST)

This command adds a binding directory entry for module TESTOBJ in library TESTLIB followed by an entry for service program TESTOBJ2 in the library list to the beginning of the binding directory entries found in the binding directory TESTBNDDIR.


Example 4: Add Entries Before an Existing Entry

ADDBNDDIRE BNDDIR(TESTBNDDIR)
OBJ((TESTLIB/TESTOBJ *MODULE) (TESTOBJ2))
POSITION(*BEFORE *LIBL/TESTMOD *MODULE)

This command adds a binding directory entry for module TESTOBJ in library TESTLIB, followed by an entry for service program TESTOBJ2 in library *LIBL prior to the binding directory entry for module TESTMOD in library *LIBL found in the binding directory TESTBNDDIR.

The binding directory entry for module TESTMOD in library *LIBL must be found in the binding directory TESTBNDDIR for this operation to be successful.