(MSNBC) — Stocks rallied Thursday, with the Dow Jones industrial average nearing the 13,000 mark, on strong U.S. economic data and indications that euro-zone leaders were on track to approve a crucial bailout for Greece.

The European common currency erased its losses against the dollar after a euro-zone official said leaders were finishing the details of a second bailout for Greece worth at least 130 billion euros.

The development eased fears of a chaotic Greek default, driving prices of safe-haven 30-year U.S. Treasuries bonds down more than 1 point.

Note: Read our discussion guidelines before commenting.