Binder Language Examples

As an example of using the binder language, assume that you are developing a simple financial application with the following procedures:
  • Rate procedure

    Calculates an Interest_Rate, given the values of Loan_Amount, Term_of_Payment, and Payment_Amount.

  • Amount procedure

    Calculates the Loan_Amount, given the values of Interest_Rate, Term_of_Payment, and Payment_Amount.

  • Payment procedure

    Calculates the Payment_Amount, given the values of Interest_Rate, Term_of_Payment, and Loan_Amount.

  • Term procedure

    Calculates the Term_of_Payment, given the values of Interest_Rate, Loan_Amount, and Payment_Amount.

Some of the output listings for this application are shown in Output Listing from CRTPGM, CRTSRVPGM, UPDPGM, or UPDSRVPGM Command.

In the binder language examples, each module contains more than one procedure. The examples apply even to modules that contain only one procedure.