Previous Topic Next topic Print topic


Define a COBOL Assignment

When the Book program executes, it uses the value in the lnk-function field to determine which action to perform. In cases like this where the value required to initialize an action is known, we create a COBOL Assignment field rather than an interface field, and assign it the value required by the program to ensure a specific action.

For the Add operation, we want the program to perform the add-record action. From looking at the source code, we know that when the value in the lnk-function field is 2, the program performs an add-record action.

  1. Drag the lnk-function field from the COBOL Entry Point pane to the COBOL Assignments pane.
  2. In the Value field, type 2; then click OK.
  3. Save the service interface.
Previous Topic Next topic Print topic