Identifying records for the start of tasks and UOWs
You can identify records written to mark the start of tasks by examining the value of the system prefix field JCSPF1. If the JCSPSOTK bit is set, the record has been written at the start of the task.
If the JCSPLSTK bit is set in field JCSPF1, then the record has been written at the start of the UOW.