Remove as much snow as possible from on top of the roof, using a snow rake specifically designed for the task or a push broom. The less snow there is, the more effective the ice melt sock will be.
Fill the ice melt socks with chemical deicer if they have not already been filled. Alternatively, simply fill a nylon stocking with a deicing compound and tie the open end shut. Use a compound that is safe and will not corrode the roofing material. Under most circumstances, avoid rock salt, or sodium chloride. Instead, choose a compound that contains calcium chloride or calcium magnesium acetate.
Lay ice melt socks every few feet spanning the ice dam. The socks should be placed so that they will carve a drainage path that extends to the edge of the roof. The socks can be placed closer to each other to address particularly problematic areas. If the roof is cleared enough above the ice dam to allow it, the socks may be tacked on for added security.