Combine sugar, milk, and butter in a large saucepan; bring to a boil. Cook at a boil, stirring constantly, for 2 minutes. Remove saucepan from heat.
Stir peanut butter and vanilla extract into sugar mixture until smooth; fold in oats until well blended. Drop mixture by spoonfuls onto aluminum foil or waxed paper. Cool until cookies are set.