AS/400 service program vs binding directory
What is the difference in service program and binding directory?

Software/Hardware used:
ASKED: December 22, 2008  4:23 PM
UPDATED: May 26, 2010  2:32 AM

Answer Wiki:
binding directory is a list of stuff to be bound with an ILE program as it is created, Included in the list could be service programs. Service program is a special type of ILE program with one or more callable modules (you can think of these as procedures or functions if you like) that can be called by any program that it is bound to. Another difference is that a program that points to a binding directory then contains all the needed modules within the object after compile. A service program contains the modules within itself and is then invoked at the time of execution.
Last Wiki Answer Submitted:  December 24, 2008  3:45 pm  by  philpl1jb   44,070 pts.
All Answer Wiki Contributors:  philpl1jb   44,070 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Philpl1jb says it all. The clue is in the name – and in the manuals.
Go to somewhere like

and read all about them.

 5,505 pts.

 

Programs are created by the CRTPGM command from modules and service programs. Binding directories are used to tell the CRTPGM command how to resolve external references in modules. The CRTPGM command has parameters which can be used for this purpose, but the binding directory makes the job easier. Create a binding directory, then add an entry for each module and service program referenced by the initial module.

Service programs are created from modules using the CRTSRVPGM command. This is similar to the CRTPGM command, but service programs cannot be execeuted directly as program can. They must be part of a program. Service programs can have multiple entry points, and they are bound to the program at run time instead of creation time.

 830 pts.

 

could any body tell me how can we use the binderlanguage in our programs? and what exactly it is ?

 10 pts.