– Alex Rodriguez singled twice to raise his career hits total to 2,997, Michael Pineda carried a no-hit bid into the seventh inning before allowing Christian Yelich’s home run, and the New York Yankees beat the Miami Marlins 2-1 Wednesday night.

On a night when Yankees manager Joe Girardi was spared having to decide whether to lift Pineda with a high pitch count and New York benefited from an overturned call at home plate that prevented the tying run in the eighth inning, A-Rod closed in on becoming the 29th player to reach the 3,000 mark.

Rodriguez lined an RBI single to center in the first inning, singled softly to center in the fifth, and walked twice; he also was thrown out at home plate. With New York starting an eight-game homestand, he has a good chance to get No. 3,000 at home.

The 39-year-old, back this year following a season-long drug suspension, was not in the starting lineup the previous two nights in Miami because there is no DH in the NL ballparks.

The overturned call helped New York win for only the second time in seven games. Plate umpire Dale Scott ruled Adeiny Hechavarria slid home ahead of first baseman Garrett Jones’ throw on Dee Gordon’s eighth-inning grounder, but a video review concluded catcher Brian McCann tagged Hechavarria’s left knee before his foot touched home.

Pineda (8-3) was back on regular rest and regained his electric slider. After the Yankees skipped his turn in an effort to limit his innings, the 26-year-old righthander had allowed six runs in an 11-3 loss at Baltimore on 10 days’ rest. Yelich sent a 91 mph offering into the Yankees’ bullpen in right-center leading off the seventh — Miami’s first ball out of the infield. He retired the next two batters, then was replaced by Chasen Shreve following his 100th pitch.