Scotland 123 for 2 (Coetzer 41, Berrington 31*) beat Oman 122 (Ilyas 37, Maqsood 34, Davey 3-25) by eight wickets
Muscat: Scotland reached the main draw of the T20 World Cup for the first time with an eight-wicket win over Oman.
They chased 123 with three overs to spare in Al Amarat to wrap up a third victory in three games and progress as winners of Group B.
Josh Davey took 3-25 before Kyle Coetzer made 41 and Richie Berrington 31 not out off 21 balls in Al Amarat.
Bangladesh earlier beat Papua New Guinea by 84 runs to secure their spot in the Super 12s.
Berrington hit a six into the stands to seal Scotland's victory and spark celebrations in the dug-out and among the small section of travelling fans.
Scotland will play India, New Zealand, Pakistan and Afghanistan in Group 2 of the Super 12s.
Oman they have beaten Test nation Bangladesh, dispatched PNG and Oman with ease, recorded their highest score at a T20 World Cup and seen Berrington become the first Scotland player to make a half-century at the tournament.
By reaching the Super 12s, Scotland also made sure of an automatic spot at next year's T20 World Cup in Australia.
Knowing defeat would end their tournament and send Oman through, Scotland put in a disciplined performance, reducing the World Cup co-hosts to 13-2 before seamer Davey took three wickets in the final over.
Coetzer, who struggled for form before the tournament, hit two fours and three sixes to get Scotland's measured chase under way, before Berrington provided the late fireworks with three huge sixes.