LINKAGE TYPE Clause Considerations

There are several ways to affect the type of linkage generated for a CALL, CANCEL, or SET. They are listed in order of precedence. The LINKAGE phrase of the CALL, CANCEL, or SET statement has the highest precedence. If no LINKAGE phrase is specified on the statement and there is no visible nested program, the LINKAGE TYPE clause is used if specified. The order of precedence is:
  • The LINKAGE phrase of the statement
  • CALL or CANCEL to a nested program
  • The LINKAGE TYPE clause of the SPECIAL-NAMES paragraph
  • The LINKLIT parameter of the CRTCBLMOD or CRTBNDCBL command