SAN FRANCISCO (AP) — Dylan Carlson hit an RBI single in the ninth inning to give the St. Louis Cardinals a 3-2 win over the San Francisco Giants.

Designated hitter Juan Yepez doubled with one out off Camilo Doval (0-1) in the ninth. Carlson’s timely hit scored pinch runner Brendan Donovan. Ryan Helsley (1-0) pitched 1 2/3 innings and earned the win. Giovanny Gallegos picked up his sixth save.