Define a document template.
CREATE DOCTEMPLATE >>-CREATE DOCTEMPLATE(data-value)--ATTRIBUTES(data-value)-------> >--ATTRLEN(data-value)--LOGMESSAGE(cvda)----------------------->< CREATE DOCTEMPLATE attribute values: .-APPENDCRLF(YES)-. |--+-----------------+--+---------------------+-----------------> '-APPENDCRLF(NO)--' '-DESCRIPTION(char58)-' >--+-FILE(char8)---------------------------+--------------------> +-TSQUEUE(char16)-----------------------+ +-TDQUEUE(char4)------------------------+ +-PROGRAM(char8)------------------------+ +-EXITPGM(char8)------------------------+ | .-DDNAME(DFHHTML)-. | +-MEMBERNAME(char8)-+-----------------+-+ | '-DDNAME(char8)---' | '-HFSFILE(char255)----------------------' >--+----------------------+-------------------------------------| '-TEMPLATENAME(char48)-'
Conditions: ILLOGIC, INVREQ, LENGERR, NOTAUTH
The CREATE DOCTEMPLATE command installs a DOCTEMPLATE definition with the attribute specified on the command. It does not use a resource definition stored in the CSD. If there is already a document template with the name you specify in the local CICS region, the new definition replaces the old one; if not, the new definition is added.
A syncpoint is implicit in CREATE DOCTEMPLATE processing, except when an exception condition is detected early in processing the command. Uncommitted changes to recoverable resources made up to that point in the task are committed if the CREATE executes successfully, and rolled back if not. See Creating resource definitions for other general rules governing CREATE commands.