NEW YORK (AP) — Alex Rodriguez reached 2,999 hits with a pair of singles, and Carlos Beltran and Brett Gardner each had two-run homers, leading the New York Yankees to a 9-4 victory over the Miami Marlins on Thursday night.

Rodriguez hit an RBI single in the first inning for the second straight night, flied out to right field in the third and hit a sharp grounder past diving third baseman Donovan Solano in the fifth to move within one hit of becoming the 29th player to reach the 3,000 plateau.

He lined out in the sixth, his first try at the milestone — swinging at specially marked balls.

Yankee Stadium played a piece of Beethoven's famed Symphony No. 5 as Rodriguez came to bat in the eighth, but Miami reliever Sam Dyson didn't give A-Rod a chance to swing, throwing four inside pitches that sent the slugger leaping back each time.