WASHINGTON — The U.S. economy generated jobs last month at the fastest pace since February, a sign it is resilient enough to pull out of a midyear slump and grow modestly even as the rest of the world slows down.
The 163,000 jobs employers added in July ended three months of weak hiring. But the surprising gains weren't enough to drive down the unemployment rate, which ticked up to 8.3 percent last month from 8.2 percent in June — the 42nd straight month the jobless rate has exceeded 8 percent.
The latest job numbers, released Friday by the Labor Department, provided fodder both for President Barack Obama, who highlighted improved hiring in the private sector, and Republican challenger Mitt Romney, who pointed toward higher unemployment.
"It's not especially weak, but it's not especially strong," said Scott Brown, chief economist at Raymond James.
Investors focused on the positive. The Dow Jones industrials surged 217 points.
Three more monthly jobs reports will come out before Election Day, including the one for October on Friday, Nov. 2, just four days before Americans vote.
No modern president has faced re-election when unemployment was so high. President Jimmy Carter was bounced from office in November 1980 when unemployment was 7.5 percent.
In remarks at the White House, Obama said the private sector has added 4.5 million jobs in the past 29 months. But he acknowledged there still are too many people out of work. "We've got more work to do on their behalf," he said.
Romney focused on the increase in the unemployment rate, as did other Republicans. "Middle-class Americans deserve better, and I believe America can do better," he said in a statement.
The economy is still struggling more than three years after the Great Recession officially ended in June 2009.
From April through June this year, the economy expanded at a listless 1.5 percent annual pace, a slowdown from the January-March pace of 2 percent.
The job market got off to a strong start in 2012. Employers added an average 226,000 a month from January through March.
But the hiring spree was caused partly by an unseasonably warm winter that allowed construction companies and other firms to hire earlier in the year than usual, effectively stealing jobs from the spring. The payback showed up as weak hiring — an average 73,000 a month — from April through June.
Then came the 163,000 new jobs in July, beating the 100,000 economists had expected.
Now that the warm weather effects have worn off, economists expect job growth to settle into range of 100,000 to 150,000 a month.
The economy has added an average of 151,000 jobs a month this year. But that hasn't been enough to bring unemployment down. At 8.3 percent, unemployment was as high in July as it had been in January.
The unemployment rate can rise even when hiring picks up because the government derives the figures from two different surveys.
One is called the payroll survey. It asks mostly large companies and government agencies how many people they employed during the month. This survey produces the number of jobs gained or lost.
The other is the household survey. Government workers ask whether the adults in a household have a job and use the findings to produce the unemployment rate. Last month's uptick in joblessness was practically a rounding error: The unemployment rate blipped up from 8.22 percent in June to 8.25 in July.
The job market still has a long way to go. The economy lost 8.8 million jobs from the time employment peaked in January 2008 until it hit bottom in February 2010. Since then, just 4 million, or 46 percent, have been recovered.
A broader measure of weakness in the job market deteriorated in July: The proportion of Americans who were either unemployed, working part-time because they couldn't find full-time work or too discouraged to look for work rose to 15 percent from 14.9 percent in June.