version | Version of structure format |
flags | 0 |
ext_value_size | Size of data addressed by ext_value |
funcs | User exit support functions |
field_name | Name of data item in COBOL program's Linkage Section |
ext_param_name | Name of external parameter |
ext_value | External data value associated with field_name |
request_cxt | Request context |
exit_data | User exit-specific data |
ext_value_size | Size of data addressed by ext_value. Needs to be updated only if the user exit allocates memory for a new ext_value string |
ext_value | External data value to be associated with field_name. Needs to be updated only if the user exit allocates memory for a new ext_value string |
exit_data | User exit-specific data |
Comments:
This exit gives you the opportunity to override the external value provided by the client request for the given COBOL program Linkage Section field name. If the exit chooses to override the external value, it must return IDP_EXIT_HANDLED and either update ext_value in place (if the replacement value is less or equal to ext_value_size), or allocate a replacement string using the support function fn_alloc_mem and set ext_value and ext_value_size accordingly. The request handler then performs default mapping for the original (IDP_EXIT_CONTINUE) or overridden (IDP_EXIT_HANDLED) external data value.
The user exit program owns the exit_data field of the IDP_EXIT_INFO structure. You would typically use it to preserve context information between exit point invocations. You can use it when returning any of the IDP_EXIT_ return values.