Mix sugar, cocoa, milk, and margarine. Bring to a boil, and boil for 1 minute. Remove from heat, and add peanut butter, oatmeal and vanilla. Drop from teaspoon onto greased cookie sheet and allow to cool.