Stocks ended a choppy session in positive territory Friday, with the S&P 500 logging its second consecutive record close a day after a hotter-than-expected rise in the May consumer-price index. The Dow Jones Industrial Average rose around 15 points, or less than 0.1%, to close near 34,480, according to preliminary figures. The S&P 500 rose around 8 points, or 0.2%, end near 4,248, while the Nasdaq Composite gained around 49 points, or 0.4%, to finish near 14,069. The Dow lost ground for the week, however, falling by around 0.8%, while the S&P 500’s record push left it up just 0.4%. The Nasdaq Composite booked a weekly gain of 1.9%, outpacing its peers as Treasury yields fell.