An IBM i binding directory is a type of directory in the IBM i operating system (formerly known as OS/400) that contains binding information for objects in a library. Binding information specifies how objects are linked or connected to each other, and a binding directory provides a central location for storing this information.
A binding directory is used to store the binding information for a set of related objects in a single location. This makes it easier to manage and maintain the binding information, as well as to ensure that all of the objects are properly linked together.
Creating a Binder Directory
Create a folder to hold your binding directories. I called mine binding-directories but you can call it whatever you want.
Then copying in an .ibmi.json and a Rules.mk file - we will edit the Rules.mk file to reference our new binding directory when we write it.
SIMPLEBND.bnddir
Here we going to have a delete, create and then add an entry for our new service program. If you add more service programs in the future, you would come back and add the new service programs to the OBJ parameter:
Now we need to update the Rules.mk to tell BOB how to build this binding directory:
Creating a Binder Directory
And that's it!
For reals.
Look at the workshop videos at the end of this module for some realtime working examples of both service programs and binding directory creation with Visual Studio Code for IBM i