PITTSBURGH -- Jeff Samardzija pitched the Cubs' first complete game in his final start of the season and the North Siders beat the fading Pittsburgh Pirates 4-3 on Saturday night.
David DeJesus singled in Welington Castillo with two outs in the eighth for the go-ahead run after Pittsburgh had tied the game at 3 in the bottom of the seventh.
Samardzija (9-13) overcame a rocky first inning to allow two hits over his final 8 2-3 innings. With the 27-year-old in his first full season as a major league starter, the Cubs announced Friday their intention to shut him down for the season.
Alfonso Soriano hit his 27th home run for the Cubs, who arrived in Pittsburgh having lost 17 of their previous 18 road games but won for the second consecutive night.
Pedro Alvarez had two hits and two RBIs for the Pirates, who have lost six of eight and were passed by Los Angeles for third place in the NL wild card standings.