The researchers' data comes from 6432 Americans who participated in a survey in 1979.
Through the years, the volunteers ranked how much they enjoyed their jobs on a spectrum from 1 (dislike very much) to 4 (like very much).
Dirlam and Zheng found a striking link between people who were less satisfied with their jobs in their 20s and 30s and those who had health issues in their 40s.
That may seem intuitive given that people tend to spend eight or more hours a day at work, and dissatisfaction at work can create a lot of stress. As has been well-documented, stress can have physical manifestations.
Among the specific health effects that the researchers noted among the less-than-happy group is that they were more depressed, worried and had trouble sleeping.
One interesting aspect of the analysis is that the health effect was not related to happiness with a person's very first job or jobs but with how their happiness with their job changed over time.
Those with increasing satisfaction fared better than those with declining satisfaction in terms of their health.
Dirlam explained that there appears to be a "cumulative effect of job satisfaction on health that appears as early as your 40s". Washington Post