SGnurse: code to check for success or fail of job ASSIGN