To obtain a system-generated UOW ID number, an ETL job issues the following command:
sendevent -g
The system-generated UOW ID is returned to the standard out handle. This value must be captured and passed in the subsequent calls to sendevent for the start and end of the job.
sendevent -g --gt < filename > sendevent generates a UOW ID, returns it on the stdout stream (current feature), and writes it to the filename specified by --gt flag.
sendevent --gt < filename > sendevent sends the UOW ID found in the <filename> specified.