Binder Language

The binder language is a small set of nonrunnable commands that defines the exports for a service program. The binder language enables the source entry utility (SEU) syntax checker to prompt and validate the input when a BND source type is specified.
Note: You cannot use the SEU syntax checking type BND for a binder source file that contains wildcarding. You also cannot use it for a binder source file that contains names longer than 254 characters.
The binder language consists of a list of the following commands:
  1. Start Program Export (STRPGMEXP) command, which identifies the beginning of a list of exports from a service program
  2. Export Symbol (EXPORT) commands, each of which identifies a symbol name available to be exported from a service program
  3. End Program Export (ENDPGMEXP) command, which identifies the end of a list of exports from a service program

Figure 1 is a sample of the binder language in a source file:

Figure 1. Example of Binder Language in a Source File
STRPGMEXP PGMLVL(*CURRENT) LVLCHK(*YES)
   .
   .
EXPORT SYMBOL(p1)
EXPORT SYMBOL('p2')
EXPORT SYMBOL('P3')
   .
   .
ENDPGMEXP
   .
   .
   .
 
STRPGMEXP  PGMLVL(*PRV)
   .
   .
EXPORT SYMBOL(p1)
EXPORT SYMBOL('p2')
   .
   .
ENDPGMEXP

Using the Retrieve Binder Source (RTVBNDSRC) command, you can generate the binder language source based on exports from one or more modules or service programs.