The WEIGHT statement uses Frequency to weight the observations.
proc freq data=migraine;
   weight frequency;