U.S. markets eke out gains; Dow, S&P move into positive territory for the week

The Dow Jones Industrial Average climbed 18 points Thursday as markets eked out gains.