Binder Manual (G06.27+, H06.04+, J06.03+)
Binder Input and Output
Binder Manual—528613-004
5-12
How Binder Builds the Target File
•
The BLOCK option causes common block declarations to be checked for the same
length and the same type of addressing in every code block that refers to the
common block. If the length and type do not match for each of the references,
Binder issues a warning. The default is ON.
•
The LIBRARY option causes the following checking to occur when Binder builds a
user library:
°
Binder checks code blocks being placed into the object file for references to
data blocks other than read-only blocks.
°
Binder also checks code blocks for the MAIN attribute.
If it finds either, Binder issues a warning message. The default is OFF.
•
The PARAMETER option specifies the extent to which Binder checks parameter
lists, function return values, and language consistency.
Binder provides five levels of parameter, return value, and language checking: ON,
STRICT, STRONG, LENIENT, and OFF. The default setting is STRICT.
Depending upon the setting of the PARAMETER option, Binder checks the parameter
lists for the respective code blocks for consistency in size, type, and mode. Mode
checking refers to whether the parameter is passed by value or by reference. Binder
issues a warning message if the called code block’s parameter requirements do not
match those of the caller. Binder checks to make sure that the caller specifies the
correct language for the called routine; it issues a warning message if the caller
specifies a different language than that of the called routine. If the caller explicitly
states that the language of the invoked routine is unspecified, Binder does not perform
this check. Refer to the discussion in SELECT Command on page 3-49 for more
information.
Note. You might receive parameter mismatch errors when using BIND that you did not receive
when using BINSERV. This can occur if you compile with parameter checking turned off and
then start a BIND session with the parameter checking turned on. In particular, the parameter
mismatch messages are likely to occur in mixed-language binding.