Combine sugar, cocoa, milk and butter in a medium weight skillet or saucepan.
Cook on medium heat, stirring constantly, until mixture reaches a slow boil.
Continue to cook for another 2 minutes, stirring constantly.
Remove from heat; add peanut butter and stir until smooth.
Add vanilla, oats and pecans.
Drop mixture by teaspoonfuls onto waxed paper.