Create a new operation named
Read that uses the
BOOK entry point.
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.
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.
Drag
lnk-b-details from the
Linkage Section pane to the
Next Operation - Interface Fields pane.
Change the name of the
lnk_b_details interface field to
readop_details, and change its direction to
Output.
Expand the tree for
readop_details and change the type of
lnk_b_retail from
BigDecimal to
int.