On 11/28/2016 9:42 AM, gio.cot wrote:
I would need write a generic trigger program that update date and time
change fields ;
As the date and time change fields , are always the same, (example
DATA_LOG - TIME_LOG), I would need find the initial field position in input
record update the values in the input record string with substring and then
return back so that in record I will find my date and time updated.
First, use the input-buffer offset in the trigger parameter to get a pointer to the input buffer.
Then use the QUSLFLD API to find the position of the two fields in the input buffer.