You must evaluate which of the data editing methods provided by the standard adaptors is to be used to edit data.
Data editing is performed by the input or output adaptors. The standard adaptors support data editing, such as mapping and record extraction. The table below lists and describes the data editing methods.
Table 2-4 Data editing methods
No. | Data editing method | Description |
---|---|---|
1 | Format conversion | You can use format conversion to convert from input or output records to common records, and vice versa.
Note that format conversion is performed only in the following cases:
|
2 | Mapping | You can use mapping to associate the common record output in the callback that precedes the mapping and the common record input in the callback that follows the mapping. The two types of mapping are the mapping between records and the mapping between record and stream. For example, a mapping between record and stream associates a common record that is input or output by format conversion with a common record based on the input stream or output stream format. For details about mapping, see 10.2.2(4) Mapping or 10.6.2(3) Mapping. |
3 | Record filtering | You can use a filter to select records. The target of record filtering is common records. For details about record filtering, see 10.4 Record filtering. |
4 | Record extraction | You can use record extraction to extract records that satisfy a specified condition and then join the extracted records to create a new record. The target of record extraction is common records. Note that record extraction is applicable only to input adaptors. For details about record extraction, see 10.5 Record extraction. |
The following figure shows the timing of data editing.
Figure 2-11 Timing of data editing
Note that you specify data editing in the CB definition for editing in the adaptor configuration definition file. For details about the CB definition in the adaptor configuration definition file, see 9. Adaptor Definition Files.