In a saucepan over medium heat, combine sugar, cocoa, milk and margarine. Bring to a boil, stirring. Cook for 1 minute, then remove from heat and add vanilla, salt, peanut butter and oats.
Spoon the finished mass onto baking paper. Allow to cool for an hour.