You can use ttsbegin and ttscommit with ttsabort following way. You can try in job
public boolean myMethod()
{
try
{
ttsBegin;
select forUpdate myTable;
myTable.fname = testt_;
myTable.update();
ttsCommit;
}
catch(exception::Error)
{
ttsabort;
return(false);
}
return(true);
}