Seems for your case ( on db2 V8.2 LUW), the following select query will be more appropriate: I ran it on my local system and its returning desired result.
db2 "select agent_id, UOW_COMP_STATUS,UOW_STOP_TIME from TABLE(SNAPSHOT_APPL(CAST(NULL as varchar(255)), -1)) as appsnap order by UOW_STOP_TIME "
Here UOW_COMP_STATUS will provide you with the flag which will identify what was the last status of the unit of work for that particular agentid e.g. commit, rollback, rollback due to deadlock, etc.