PIMM gate, PUT_ATTACHMENT function

Adds the names of the headers and body containers for the binary attachment with the given content-ID or CID to the attachments container.

Input Parameters

ATTACHMENTS_CONTAINER
The 16-byte name of the container in the specified channel that contains the binary attachments list.
BODY_CONTAINER
The 16-byte name of the body container in the specified channel. This is a container of DATATYPE(BIT), as it always contains a binary attachment.
CCSID
The fullword binary CCSID value. This is used for header value input and output parameters such as CONTENT_ID.
CHANNEL_NAME
Optional parameter
The 16-byte name of the channel for all referenced containers. If this parameter is omitted, then the current channel is assumed.
CID
A buffer for the CID URI in the specified CCSID. This should be in the format cid:addr-spec. Either CID or CONTENT_ID can be used as input.
CONTENT_ID
A buffer for the Content-ID in the specified CCSID. The value should be in the format <addr-spec>. Either CID or CONTENT_ID can be used as input.
HEADERS_CONTAINER
The 16-byte name of the headers container in the specified channel. This should be a container of DATATYPE(CHAR) that contains the MIME headers.

Output Parameters

REASON
The following values are returned when RESPONSE is EXCEPTION:
  • CHANNEL_NOT_FOUND
  • CCSID_NOT_SUPPORTED
  • CONTAINER_NAME_INVALID
  • DUPLICATE_ATTACHMENT
  • INVALID_CHARACTER
RESPONSE
Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.


dfhs3_PIMMput_attachment.html | Timestamp icon Last updated: Monday, 5 June 2017