U.S. stocks closed effectively flat in quiet trading Wednesday as investors waited to see what the outcome would be of an emergency meeting between Greece and the rest of the eurozone to discuss the country's finances. Energy stocks were among the biggest decliners as the price of oil fell.

On Wednesday:

The Dow Jones industrial average fell 6.62 points, or 0.04 percent, to 17,862.14.

The Standard & Poor's 500 index lost 0.06 of a point, less than 0.01 percent, to 2,068.53.

The Nasdaq composite rose 13.54 points, or 0.3 percent, to 4,801.18.

For the week:

The Dow Jones industrial average is up 37.85 points, or 0.2 percent.

The Standard & Poor's 500 index is up 9.63 points, or 0.6 percent.

The Nasdaq composite rose 56.78 points, or 1.2 percent.

For the year:

The Dow is up 39.07 points, or 0.2 percent.

The S&P 500 index is up 9.63 points, or 0.5 percent.

The Nasdaq is up 65.13 points, or 1.4 percent.