LOS ANGELES (AP) -- Zack Greinke had been badgering manager Don Mattingly for a month to let him pitch deeper into games.
Mattingly finally obliged, even getting booed by Los Angeles Dodgers fans when he made a mound visit to Greinke late in the game against the Chicago Cubs on Monday night.
''Then I don't do the job,'' Greinke said after coming within one strike of his fifth career shutout in the Dodgers' 6-2 victory that ended their two-game skid.
Greinke got the first two outs of the ninth before running into trouble. Anthony Rizzo doubled and then Greinke hit Nate Schierholtz. Greinke had a 3-2 count on Brian Bogusevic before he doubled to deep left to score Chicago's two runs.
''It was frustrating,'' Greinke said. ''I made some good pitches. Rizzo had a nice hit. The pitch to Schierholtz was pretty close to where you want to throw it and it hit him. I'm more frustrated I couldn't get him (Bogusevic) out. Did everything you could but just didn't happen.''
Brian Wilson came in to strike out Donnie Murphy for the final out.
''I knew he really wanted to stay in the game,'' Mattingly said of Greinke. ''I'm a little torn with it, honestly. I wanted to keep him at 115 (pitches, Greinke threw 122), but he's earned the right to go for it.''
Hanley Ramirez and Yasiel Puig homered to help the Dodgers beat the Cubs for the eighth straight time, including a four-game sweep at Wrigley Field earlier this month. The Dodgers tied their longest streak over Chicago in franchise history, set from June 9, 1974-May 19, 1975.
Greinke (13-3) allowed two runs and five hits in 8 2-3 innings. He tied his season high with nine strikeouts and walked two while improving to 5-0 this month with a 1.23 ERA in five starts. The right-hander has won 10 of 11 decisions, going 10-1 with a 2.14 ERA in 13 starts since June 22.
He didn't allow a runner to reach second base until the eighth.
''Zack throwing zeroes early gives us a chance to shake out the cobwebs from the last series,'' Mattingly said, referring to the Dodgers dropping two of three against Boston.
Greinke helped himself offensively, too, with a two-out hit in the fourth that scored the Dodgers' first run.
''Pitching is like the business and hitting is more the fun part,'' he said.
After giving up a single to Starlin Castro to open the game, Greinke retired the next 13 batters before Murphy singled in the fifth.
Greinke issued consecutive one-out walks to Murphy and Welington Castillo in the eighth before Darwin Barney grounded into a fielder's choice to third. Murphy advanced to third and Castillo was out at second.
The Dodgers thought they had completed the double play, but second baseman Mark Ellis' throw didn't beat Barney to first, leading Mattingly to shout, ''Out!'' from the dugout.
Greinke then got pinch-hitter Dioner Navarro to ground out to third, ending the inning.
''He's been on a pretty good stretch and it continued,'' Cubs manager Dale Sveum said. ''We really didn't muster up a whole lot until that last inning. He can pitch to a game report and he's got all the pitches to do it. He can pitch to weaknesses and that's what he did.''
Jake Arrieta (1-1) gave up four runs and six hits in five-plus innings, struck out three and walked five in his first road start for the Cubs since being acquired on July 2 from Baltimore.
''I flat-out just got outpitched by one of the best in the game,'' he said. ''I didn't do a good enough job. I've got to be better than that. I've got to be better at staying focused and having better concentration.''
Puig hit his 13th homer on his first pitch from Michael Bowden with two outs in the eighth. The Cuban defector finished a triple shy of the cycle for his 31st multi-hit game in 74 career games.
Ramirez homered off Carlos Villanueva with one out in the seventh, extending the Dodgers' lead to 5-0.
Los Angeles had tacked on a pair of runs in the sixth on Nick Punto's RBI double and Carl Crawford's sacrifice fly that made it 4-0.
The Dodgers took a 2-0 lead in the fourth on two-out hits by Greinke and Crawford. Greinke's single scored A.J. Ellis, who walked, and Crawford's ground-rule double to deep left scored Punto, who walked.
Notes: Dodgers OF Matt Kemp got a day off from rehabbing the sprained left ankle that has had him on the DL since July 24. He will run the bases on Tuesday and Wednesday. ''When you start running the bases you're usually getting closer,'' Mattingly said. ... The Cubs fell to 30-35 on the road, where they are better than at home (25-41). ... The Dodgers clinched the 15th calendar month with 20 or more wins since 1958. Their previous was a 20-8 mark in May 2010.