Encode (-ENCODE)

Use the Encode adapter command (-ENCODE) to instruct the adapter to encode the XML data into MIME format. This is performed implicitly if the MIME Adapter is chained with a transport adapter in an output card.


-ENCODE

For example, to encode MIME data before transporting over HTTP:


PUT("MIME","-ENCODE -TRANSPORT ' HTTP (-URL  http:/myurl/ )'" 
 MimeRequest )

The -ENCODE option is optional since it is implied by the invocation of the MIME Adapter in an output card or PUT function.

For more information on encoding and decoding data, see the Encoding and Decoding Data section in the Resource Adapters documentation.