Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Add Binding Directory Entry (ADDBNDDIRE) command adds an entry to a binding directory.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
BNDDIR | Binding directory | Qualified object name | Required, Positional 1 |
Qualifier 1: Binding directory | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB, *USRLIBL | ||
OBJ | Object specifications | Values (up to 50 repetitions): Element list | Required, Positional 2 |
Element 1: Object | Qualified object name | ||
Qualifier 1: Object | Generic name, name, *ALL | ||
Qualifier 2: Library | Name, *LIBL | ||
Element 2: Object type | *SRVPGM, *MODULE | ||
POSITION | Position specifications | Single values: *LAST, *FIRST Other values: Element list |
Optional, Positional 3 |
Element 1: Object position | *AFTER, *BEFORE, *REPLACE | ||
Element 2: Object | Qualified object name | ||
Qualifier 1: Object | Name | ||
Qualifier 2: Library | Name, *LIBL | ||
Element 3: Object type | *SRVPGM, *MODULE |
Top |
Specifies the binding directory to which an entry is added.
This is a required parameter.
Qualifier 1: Binding directory
Qualifier 2: Library
Top |
Specifies one or more object names to be added to the binding directory.
This is a required parameter.
You can specify 50 values for this parameter.
Element 1: Object
Qualifier 1: Object
Qualifier 2: Library
Element 2: Object type
Top |
Specifies the position in the binding directory where the list of objects is added.
Single values
Element 1: Object position
Element 2: Object
Qualifier 1: Object
Qualifier 2: Library
Element 3: Object type
Top |
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.
Top |
*ESCAPE Messages
Top |