* S&P squeaks record high close
* Dollar extends gains versus yen, euro; debt prices fall
* Oil rises on larger-than-expected drop in U.S. inventories
* New York's Empire State data stronger than expected
* World Bank raises its global growth outlook for 2013
By Herbert Lash
NEW YORK, Jan 15 (Reuters) - Global equity markets and the dollar advanced on Wednesday after the latest economic data and stronger-than-expected earnings from Bank of America pointed to continued improvement in the U.S. economy.
The U.S. benchmark S&P 500 stock index touched another intra-day record high and eked out a record closing high, ending two-hundredths of a point higher than the previous record close. The Nasdaq composite, meanwhile, rose to highs last seen in September 2000 just after the tech bubble burst.
U.S. producer prices posted their largest gain in six months in December as the cost of gasoline rebounded strongly, but inflation pressures remained benign.
In addition, a manufacturing gauge for New York state jumped to its highest in 20 months in January as new orders soared, the Federal Reserve Bank of New York said.
The U.S. Labor Department said its seasonally adjusted producer price index rose 0.4 percent last month, the biggest rise since June, after slipping 0.1 percent in November.
The New York Fed's Empire State general business conditions index jumped to 12.51 in January, the highest reading since May 2012, well up from a revised 2.22 the prior month. Economists polled by Reuters had expected a reading of 3.75.
"We're going from bad news is good news to good news is good news; no one wants to see the economy doing badly any more," said Yu-Dee Chang, chief trader of ACE Investments in Vienna, Virginia.
"Going forward, it's back to earnings and we're keeping an eye on the banks," Chang said.
Bank of America Corp, the second-largest U.S. bank, said quarterly profit surged nearly $3 billion as revenue increased and mortgage losses plunged in the clearest sign yet the bank was shaking off the impact of the financial crisis. Its shares rose 2.3 percent to close at $17.15, the highest level since May 2010.
MSCI's all-country world index rose 0.48 percent, while shares in Europe hit 5-1/2-year highs, buoyed by a better global growth outlook on Tuesday from the World Bank.
The World Bank raised its forecast for global growth for the first time in three years, upping its estimate for 2014 by two-tenths of a point to 3.2 percent, as advanced economies started to pick up pace, led by the United States. It also predicted faster growth for 2015 and 2016.
Separately, data confirmed that private consumption in Germany, Europe's biggest economy, rose 0.9 percent in 2013, indicating underlying strength even though headline gross domestic product grew just 0.4 percent.
The pan-European FTSEurofirst 300 index of leading regional shares rose 1.0 percent to close at 1,339.82.
On Wall Street, the Dow Jones industrial average closed up 108.08 points, or 0.66 percent, to 16,481.94. The S&P 500 gained 9.5 points, or 0.52 percent, to 1,848.38 and the Nasdaq Composite added 31.868 points, or 0.76 percent, to 4,214.884.
The dollar advanced, with the dollar index up 0.43 percent to 81.008. Against the yen, the dollar rose 0.37 percent to 104.59 yen after gaining more than 1 percent on Tuesday.
The euro fell 0.56 percent to $1.3603.
"The data that we've seen since the payrolls report Friday has been quite positive," said Omer Esiner, chief market analyst at Commonwealth Foreign Exchange in Washington, DC.
U.S. Treasuries yields rose on expectations inflation may start picking up and potentially bring forward the time when the Federal Reserve starts raising benchmark interest rates.
Benchmark 10-year Treasury notes were last down 3/32 in price to yield 2.8801 percent.
German Bund futures fell 14 ticks to settle at 140.54.
Brent oil futures rose above $107 a barrel after a larger-than-expected draw on U.S. crude and distillate stocks offset bearish signals from a possible rise in Iranian oil exports.
Crude oil stocks dropped by 7.7 million barrels on the week, capping the largest seven-week drop on record, compared to a forecast of a 0.6 million barrel fall, according to the U.S. Energy Information Administration.
February Brent crude rose 74 cents to settle at $107.13 a barrel. U.S. crude for February delivery settled $1.58 higher at $94.17 a barrel.