Steve Sax's four hits in Los Angeles helped Fernando Valenzuela (13-6) win his third straight.
Valenzuela had a 3-0 lead after the first inning but put the tying run on base in the eighth inning. He gave up eight hits before Tom Niedenfuer relieved with one out in the eighth. Steve Howe finished up to get his 15th save.
Sax led off the first inning with a single, stole second and scored on Bill Russell's single. Russell then stole second, went to third on a passed ball and scored when Pedro Guerrero grounded into a fielder's choice. Guerrero took second on Ivan DeJesus' throwing error and scored on Mike Marshall's single.
In the third, Dusty Baker and Guerrero singled and Ken Landreaux was safe on Pete Rose's error to load the bases. Greg Brock walked to force in Baker.
Valenzuela lost a shutout in the fourth when Mike Schmidt hit a 1-1 pitch into the center field stands for his league-leading 28th home run.
In the eighth, pinch hitter Tony Perez led off with a walk, took third on Bo Diaz's ground rule double and scored on Rose's grounder. Gary Matthews singled and, after Niedenfuer replaced Valenzuela, Schmidt singled in pinch runner Von Hayes.