Data Transformation Engine Resource Adapter Reference Guide

Chapter 1 - Resource Adapters Encoding and Decoding Data
Resource Adapters Reference Guide
16
Encoding
Data can be encoded using a specified adapter. The encoding adapter is called
before the transport adapter in an output card,
PUT or GET where request data is
passed as the third parameter.
The following characteristics exist for the
–ENCODE command:
The
–ENCODE command is used within the command line of a transport
adapter, or another encoding adapter.
The
-ENCODE command cannot be used in an input card.
For example:
-ENCODE '
encoding_adapter
(
command_line
)'
Note The –ENCODE command is not required if the -TRANSPORT command is used.
Encoding is implied by using -TRANSPORT in an output card, PUT or GET where
request data is passed as the third parameter.
See Encode/Decode Scenarios for more information.
Decoding
You can also decode the data using a specified adapter. The decoding adapter is
called after the transport adapter in an input card or
GET.
The following characteristics exist for the
–DECODE command:
The
–DECODE command is used within the command line of a transport
adapter, or another decoding adapter.
The
-DECODE command cannot be used in an output card or a PUT function.
For example:
-DECODE '
decoding_adapter
(
command_line
)'
Note The –DECODE command is not required if the -TRANSPORT command is used.
Decoding is implied by using -TRANSPORT in an input card, or GET function.
See Encode/Decode Scenarios for more information.