S&P 500 companies are on pace to deliver record earnings in the second-quarter reporting season despite a lackluster global economy.

“Through last Thursday, 135 of the S&P 500 companies, representing 39% of the market cap of the index had reported with 70% beating night-before expectations on earnings and 83% beating night-before expectations on revenues,” said David Kelly, chief market strategist at JP Morgan Funds.

“This week, another 182 companies are due to report representing a further 31% of the capitalized value of the index,” Kelly wrote in an outlook Monday. “If current trends persist, S&P500 operating earnings for the second quarter will end up between $24.10 and $24.50 [a share], beating the old record high of $24.06 set back in the second quarter of 2007.”

Perhaps lost in all the debt and unemployment doom and gloom is that corporate America is churning out record profits after slimming down due to the credit crisis.

“This achievement, if it is realized, will be all the more remarkable as it will have occurred in a quarter when GDP grew by just 2% annualized, unemployment averaged more than 9% and two-thirds of the American people believed we were in recession,” Kelly said. “In this regard, it is important to note that the value of stocks depends not on GDP or wages or confidence.  It depends on profits and while the uncertainty caused by a slow-moving economy and debt troubles both here and abroad may be limiting current stock market gains, if this uncertainty does diminish in the months ahead, the outlook for stocks could brighten significantly.”

In the first quarter, the S&P 500 earned $23 a share in operating earnings. “That’s within a short stone’s throw of the all-time prior record … in the second quarter of 2007, despite a far more depressed economy than in the hold housing market bubble heyday of the last decade,” said Nicholas Colas, chief market strategist at ConvergEx Group.