He wanted to do a worthwhile job.
We decided to give the money to a worthwhile cause (=one that helps people).
it is worthwhile to do something
I thought it was worthwhile to clarify the matter.
it is worthwhile doing something
It wasn't worthwhile continuing with the project.