How can we create the binding directory in as400? What do they store, and why do we use them in RPG programming? Is there any benefit of using them?
Sorry, you do not have permission to ask a question, You must login to ask a question.
Sorry, you do not have permission to ask a question.
To create a binding directory, use the command CRTBNDDIR as follows:
CRTBNDDIR BNDDIR(TESTLIB/BNDDIR1)
A binding directory is an object of type *BNDDIR. We can add entries to the binding directory using the command ADDBNDDIRE.
ADDBNDDIRE BNDDIR(TESTLIB/BNDDIR1) OBJ((TESTLIB/SRVPGM1 *SRVPGM))
We can add service programs or modules to the binding directory. Only names get added, not the object, and it gets picked when the program executes and has this binding directory attached.
Commands used with binding directories, such as
RMVBNDDIRE
andWRKBNDDIRE
.RMVBNDDIRE BNDDIR(EASYCLASS1/B1)
OBJ((EASYCLASS1/TEST *SRVPGM))
and
WRKBNDDIRE BNDDIR(TESTLIB/BNDDIR1)