Create and define the Read operation

  1. Create a new operation named Read that uses the BOOK entry point.
  2. Create a COBOL Assignment for the lnk-function field and set its value to 1. This is the value that instructs the program to read a record.
  3. Create an interface field named lnk_file_status from the COBOL Entry Point field lnk-file-status; then set its direction to Output.

    The program functionality that reads a record gets the required record from the data file and returns it. Therefore, we need a set of output fields in which to return the fields of this record.

  4. Drag lnk-b-details from the Linkage Section pane to the Next Operation - Interface Fields pane.
  5. Change the name of the lnk_b_details interface field to readop_details, and change its direction to Output.
  6. Expand the tree for readop_details and change the type of lnk_b_retail from BigDecimal to int.
  7. Save the service interface.