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: