Previous Topic Next topic Print topic


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 COBOL Entry Point pane to the Interface Fields pane.
  5. Change the name of the lnk_b_details interface field to readop_details.
  6. Expand the tree for readop_details and change the type of lnk_b_retail from BigDecimal to int.
  7. Change the direction of readop_details to Output.
Previous Topic Next topic Print topic