SAN FRANCISCO -- Barry Zito carried a shutout into the ninth inning, Pablo Sandoval homered and the San Francisco Giants got within a game of the Colorado Rockies for the NL wild card by beating them 5-3 Saturday night.
Randy Winn, Juan Uribe, Nate Schierholtz and Eli Whiteside also drove in runs for the Giants, who won for the fourth time in five games.
Brad Hawpe homered and Seth Smith drove in two runs for the Rockies, who lost their fourth in a row, tying their longest slide of the season.
Zito (9-11) allowed one run on eight hits over 8 1/3 innings. He walked one and struck out seven.
Jason Marquis (14-9) allowed five runs on nine hits over six innings.
Hawpe's home run ended the Giants' streak of 22 innings without allowing an earned run, including the last 14 against the Rockies.
Pinch hitter Seth Smith singled home a pair of runs in the top of the ninth and pinch hitter Todd Helton singled before Brian Wilson came on to get Clint Barmes to fly out for his 32nd save in 38 chances.
Marquis had a single and a sacrifice bunt and was the only Rockies runner to reach third base.
Sandoval, who homered leading off the second, had three hits before leaving after the sixth. Uribe had two hits.
Eugenio Velez drew a walk with one out in the third and raced to third on Edgar Renteria's single to left. Winn followed with his sacrifice fly.
The Giants added three runs in the sixth on Uribe's double, Schierholtz's sacrifice fly and Whiteside's first career triple.
Zito is 4-2 with a 1.77 ERA since the All-Star Break and is a career 74-38 in the second half of the season. He also improved to 105-6 in his career when receiving at least four runs of support.
2000 NL MVP Jeff Kent was honored on the Giants' Wall of Fame before the game. ... Zito struck out the side to start the game for the first time since July 29, 2001 as a member of the Oakland A's against the Kansas City Royals. ... Sandoval recorded the Giants' 50th 'splash hit' since the new park opened in 2000. ... Marquis allowed five or more runs in an NL park other than Coors Field for the first time since allowing six in Arizona on April 20. ... Rockies' C Yorvit Torrealba singled in the third to match his career best with a nine-game hitting streak.
Copyright 2015 Associated Press. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.