Entry parameters for table-level and row-level user exits in C/C++
The following list describes each parameter in the entry parameter list that must be defined in each C/C++table/row-level user exit program.
- Return Code (pReturnCode)
- The return code that indicates whether or not the user exit program was successful.
- User Exit Program Name (pProgramName)
- The name of the user exit program that was called.
- User Exit Point (entryPointCode)
- The table/row-level user exit point where the user exit program was called.
- Publisher Before Image (pBeforeRecordData)
- The row before image in the source table.
- Publisher After Image (pAfterRecordData)
- The row after image in the source table.
- Publisher Before Image NULL Indicator Count (nullIndBeforeCount)
- The number of NULL-capable fields in the before image.
- Publisher After Image NULL Indicator Count (nullIndAfterCount)
- The number of NULL-capable fields in the after image.
- Publisher Before Image NULL Indicators (pBeforeRecordNullInd)
- NULL indicators for all NULL-capable fields in the before image.
- Publisher After Image NULL Indicators (pAfterRecordNullInd)
- NULL indicators for all NULL-capable fields in the after image.
- Publisher Before Image Journal Data (pBeforeJournalHeader)
- Journal control information associated with the before image.
- Publisher After Image Journal Data (pAfterJournalHeader)
- Journal control information associated with the after image.
- Subscriber Final Image Length (internalDataLength)
- The length of the fully formatted (final) image that will be applied to the target table.
- Subscriber Final Image (pTSInternalBuffer)
- The fully formatted (final) image that will be applied to the target table.
- Subscriber Final Image NULL Indicator Count (internalNullIndCount)
- The number of NULL-capable fields in the fully formatted (final) image. Each NULL-capable field will have a NULL indicator.
- Subscriber Final Image NULL Indicators (pTSInternalNullInd)
- NULL indicators for all NULL-capable fields in the fully formatted (final) image.
- Source identifier (pSourceSystemId)
- The source identifier identifying the subscription containing the source table.
Both the pBeforeJournalHeader and pAfterJournalHeader parameters contain the journal control fields listed in Entry parameters for table-level and row-level user exits in RPG.