link
void link (const IccBuf* commArea = 0,
const IccTransId* transId = 0,
CommitOpt opt = noCommitOnReturn)
const IccTransId* transId = 0,
CommitOpt opt = noCommitOnReturn)
- commArea
- An optional pointer to the IccBuf object that contains the COMMAREA—the buffer used to pass information between the calling program and the program that is being called
- transId
- An optional pointer to the IccTransId object that indicates the name of the mirror transaction under which the program is to run if it is a remote (DPL) program link
- opt
- An enumeration, defined in this class, that affects the behavior of the link when the program is remote (DPL). The default (noCommitOnReturn) is not to commit resource changes on the remote CICS® region until the current task commits its resources. The alternative (commitOnReturn) means that the resources of the remote program are committed whether or not this task subsequently abends or encounters a problem.
Conditions: INVREQ, NOTAUTH, PGMIDERR, SYSIDERR,
LENGERR, ROLLEDBACK, TERMERR
Restrictions
Links may be nested, that is, a linked program may link to another program. However, due to implementation restrictions, you may only nest such programs 15 times. If this is exceeded, an exception is thrown.