NEW YORK (Reuters) - The Dow and the S&P 500 ended higher on Thursday, helped by an advance in shares of energy companies as oil climbed to another record, but the Nasdaq dipped after a profit warning from graphics chipmaker Nvidia Corp

Based on the latest available data, the Dow Jones industrial average <.DJI> rose 73.03 points, or 0.65 percent, to close unofficially at 11,288.54. The Standard & Poor's 500 Index <.SPX> climbed 1.38 points, or 0.11 percent, to finish unofficially at 1,262.90.
The Nasdaq Composite Index <.IXIC> declined 6.08 points, or 0.27 percent, to close unofficially at 2,245.38.
The U.S. stock market will be closed on Friday for the Independence Day holiday.
For the shortened week, the S&P 500 shed 1.2 percent, the Dow dropped 0.50 percent, and the Nasdaq lost 3.03 percent. This marked the Nasdaq's fifth straight weekly drop.
(Reporting by Ellis Mnyandu; Editing by Jan Paschal)
Terra/Reuters