This time, the Atlanta Braves held onto their big lead and locked up a playoff trip with plenty of time to spare.

It couldn't have felt any sweeter for retiring star Chipper Jones.

Freddie Freeman hit a two-run homer in the bottom of the ninth inning in Atlanta to put the Braves back in the post-season with a 4-3 victory over the Miami Marlins on Tuesday night.

Freeman's dramatic drive off Mike Dunn clinched at least a National League wild-card berth for the Braves, who squandered a big lead in the wild-card race with a huge collapse last September.

"They took the attitude last year to try and hang on," Jones said. "This year we took the bull by the horns. We're shooting for the stars. We're still shooting for the division until they close us out."

Jones, who plans to retire at the end of the season, led off the ninth with a double. He moved to third on a wild pitch by Dunn (0-3) and scored when Freeman's 22nd homer easily cleared the centre-field wall.

"There was never any doubt," Jones said during the clubhouse celebration. "We knew that last year was somewhat of a fluke."

Craig Kimbrel (3-1) worked a scoreless inning to help the Braves win their 22nd straight game started by Kris Medlen. The streak is the longest in the majors since the New York Yankees won 22 consecutive games started by Whitey Ford in 1950 and '53.

Last year's September flop was fresh on Medlen's mind.

"You can't really win consistently until you lose," Medlen said. "Losing's a big part of being able to win."

Returning to the post-season helps wipe away some of last season's frustration for the Braves, who blew an 8 ½-game lead in the wild-card standings and finished September 9-18. They missed the playoffs after one of the biggest meltdowns in baseball history.

This year, Atlanta cruised most of the way and wrapped up a post-season spot with more than a week remaining in the regular season. And the Braves still have a chance to catch first-place Washington in the NL East. They moved within four games of the Nationals, who lost to Philadelphia 6-3, with eight to play.

"It makes it all worth it. I'm happier for these guys because they worked hard," Jones said.

Four of the five NL playoff spots are secured. In addition to Atlanta, Washington, Cincinnati and San Francisco have all punched their tickets to the post-season.

The second-place Braves have a comfortable cushion in the wild-card race, and St. Louis leads the chase for the league's second wild card.

The Braves will return to the post-season for the first time since 2010 and for the 16th time in the last 22 seasons of play.

Reds 4, Brewers 2

CINCINNATI — Johnny Cueto pitched seven solid innings, and the Cincinnati Reds stayed in the chase for the NL's top record by beating Milwaukee after learning they'll be without their manager for the rest of the week.

The Brewers dropped back-to-back games for the first time in more than a month, and fell to 4 1/2 games behind St. Louis for the final NL wild card spot as the Cardinals later beat Houston 4-0.

Reds manager Dusty Baker met players before the game and revealed he suffered a mini-stroke in addition to being treated for an irregular heartbeat last week. The 63-year-old manager hopes to return to the dugout next week.

The Brewers couldn't do much against Cueto (19-9), who is rounding back into form as the playoffs approach. Mike Fiers (9-9) gave up nine hits and four runs in 4 1/3 innings for Milwaukee.

Phillies 6, Nationals 3

PHILADELPHIA — Darin Ruf homered for his first major league hit, Carlos Ruiz and Domonic Brown also went deep as Philadelphia beat playoff-bound Washington.

Cole Hamels (16-6) overcame five shaky innings to set a career high in wins and help the five-time defending NL East champion Phillies keep their faint post-season hopes alive. Hamels allowed three runs and seven hits, tying his shortest outing of the year.

Philadelphia remained 5 ½ games behind St. Louis for the NL's second wild-card spot. Milwaukee and the Los Angeles Dodgers also are ahead of the Phillies in the standings with eight games remaining.

The Nationals' magic number for winning the first division title in franchise history remained at five because Atlanta beat Miami 4-3. Their lead over the Braves dropped to four games with eight left.

Pirates 10, Mets 6

NEW YORK — Pedro Alvarez hit his 30th homer and drove in four runs as Pittsburgh ended the Mets' four-game winning streak.

Pittsburgh avoided elimination in the playoff race, remaining mathematically in contention for the second NL wild-card spot. The Pirates posted their 76th victory, the team's most since 1999 when they won 78.

Alvarez hit a three-run shot that made it 4-0 in the first inning. He drew a bases-loaded walk in the fifth, helping the Pirates win for just the sixth time in 24 games. Garrett Jones hit his 25th homer and drove in three runs for the Pirates. Wandy Rodriguez (12-13) improved to 5-4 since being traded from Houston to Pittsburgh in late July.

David Wright homered and added a two-run single, tying the Mets' career record of 1,418 hits set by Ed Kranepool.

The Mets' Collin McHugh (0-3) was pulled soon after Josh Harrison's two-run triple in the second.

Cardinals 4, Astros 0

HOUSTON — Jaime Garcia pitched seven sharp innings and Jon Jay drove in two runs to help St. Louis improve its playoff chances.

The Cardinals won their fourth straight and extended their winning streak over the last-place Astros to a franchise-best 10 games. They also moved 4 ½ games ahead of Milwaukee in the race for the second NL wild card. The Brewers lost in Cincinnati 4-2.

With seven games remaining, St. Louis is closing in on the NL's final available post-season spot. Atlanta clinched at least a wild-card berth by beating Miami 4-3 earlier Tuesday night.

Rockies 10, Cubs 5, (6 1-2 innings, rain)

DENVER — DJ LeMahieu had three hits and finished a home run short of the cycle and Wilin Rosario went deep for Colorado in a rain-shortened game.

Matt McBride homered and Chris Nelson had three hits for the Rockies, who won a matchup of two 94-loss teams. Carlos Torres (5-3) got the win after allowing one run in two innings of relief.

The teams played in a constant drizzle throughout the game with temperatures hovering in the low 50s. The game was delayed in the middle of the seventh and called 48 minutes later.

Dave Sappelt and Starlin Castro homered for the Cubs, who have lost seven of eight. Chicago is five losses shy of its first 100-loss season since 1966.

Chicago starter Chris Rushin (1-3) allowed six runs on seven hits in 3 2/3 innings.

Diamondbacks 7, Giants 2

SAN FRANCISCO — Paul Goldschmidt hit a three-run homer and a pair of sacrifice flies for a career-high five RBIs, and the Arizona Diamondbacks beat the NL West champion San Francisco Giants 7-2 on Tuesday night.

Goldschmidt on his own gave Josh Collmenter (5-3) plenty of support as Arizona won for the seventh time in its last nine games. The D-backs are trying to keep their slim NL wild-card hopes alive.

Aaron Hill had three hits and scored three runs, and Arizona also scored two of its runs on wild pitches on a cool night featuring swirling mist above the field in the early innings.

Tim Lincecum (10-15) had his start pushed back two games from Sunday after San Francisco clinched its second division crown in three years with a win against San Diego on Saturday night.

Dodgers 2, Padres 1

SAN DIEGO — Josh Beckett lost for the third time in six starts with the Los Angeles Dodgers, whose playoff chances were dealt a blow in a 2-1 loss to the San Diego Padres on Tuesday night.

With eight games to play, the Dodgers are tied with Milwaukee, 4 1/2 games behind St. Louis for the NL's second wild-card spot. St. Louis beat Houston 4-0 and Cincinnati beat the Brewers 4-2.

The Padres scratched out two runs against Beckett (1-3) and made two nice defensive plays.

Padres closer Huston Street got in and out of trouble in the ninth for his 23rd save in as many chances. Street allowed A.J. Ellis' RBI double to the gap in right-centre and then put runners on the corners with one out. He struck out Andre Ethier and got Matt Kemp to fly out to right to end it.