DHTM gate, READ_TEMPLATE function
The READ_TEMPLATE function of the DHTM gate is used to read a named template into a buffer provided by the caller.
Input Parameters
- TEMPLATE_BUFFER
- is a buffer containing a template to be added to the document.
- TEMPLATE_NAME
- is the name of an RDO defined DOCTEMPLATE which is to be added to the document.
Output Parameters
- REASON
- The following values are returned when RESPONSE is DISASTER:
- ABEND
- DIRECTORY_ERROR
- LOOP
- The following values are returned when RESPONSE is EXCEPTION:
- BROWSE_END
- DDNAME_NOT_FOUND
- FREEMAIN_FAILED
- GETMAIN_FAILED
- IO_ERROR
- MEMBER_NOT_FOUND
- NAME_IN_USE
- NOT_FOUND
- NOT_USABLE
- TRUNCATED
- The following values are returned when RESPONSE is INVALID:
- INVALID_BROWSE_TOKEN
- INVALID_FORMAT
- INVALID_FUNCTION
- INVALID_RESOURCE_TYPE
- RESPONSE
- Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.
- DOCTEMPLATE
- Optional Parameter
- is the name of the DOCTEMPLATE resource as it is known to RDO.
- TYPE
- Optional Parameter
- specifies the format of the contents of the template.
- Values for the parameter are:
- BINARY
- EBCDIC