| Binding Directory Organization |
|
|
|
Q. I work in a shop where service programs and binding directories traditionally have a one-to-one relationship (that is, there is a binding directory for each service program). My preferred approach is service programs with functions related to a business area in a binding directory, then maybe two or three binding directories that cross business areas. From this scheme it appears we would reduce the amount of time we spend managing our objects. Remembering that we try to keep the functions small, we should not create a lot of "code bloat"; should be able to avoid loading a lot of functionality that is not useful.
A. The advantages of a one-to-one relationship between a program and a binding directory:
Personally, I prefer the approach of having two or three binding directories:
Then on the binding command (CRTPGM or CRTSRVPGM) or in the RPG H-specs, I BNDDIR('program-bnddir':'application-bnddir':'xapp-bnddir')
Advantages:
The "code bloat" issue is really a non-issue. Remember that unused binding directory entries are never bound into a program or service program; the binder will simply skip the entry. |
Special pricing for the Ontario area. Book a 5-day onsite class for as little as USD $900/day. Get a price quote today. Ask for offer CA900.
5-day minimum, special terms apply.