IN SPITE OF HAVING / HIS/ EARNING A GOOD SALARY, HE WAS UNHAPPY IN...

37. In spite of having / his/ earning a good salary, he was unhappy in his job.