Create the data set FAILURE. Each observation of the FAILURE data set contains the type of manufacturing defect, a count of how many times it occurred, and a cost associated with the defect.


data failure;
   length Defect $15;
   input  Defect Count @@;
   select (Defect) ;
      when ("Contamination")  Cost=3.5;
      when ("Metallization")  Cost=10;
      when ("Oxide")          Cost=10.5;
      when ("Corrosion")      Cost=4.5;
      when ("Doping")         Cost=3.6;
      when ("Silicon")        Cost=5.4;
      otherwise               Cost=1.0;
        end;

datalines;
Contamination 15   Corrosion 2      Doping 1         Metallization 2
Miscellaneous 3    Oxide 8          Silicon 1        Contamination 16
Corrosion 3        Doping 1         Metallization 3  Miscellaneous 1
Oxide 9            Silicon 2        Contamination 20 Corrosion 1
Doping 1           Metallization 0  Miscellaneous 3  Oxide 7
Silicon 2          Contamination 12 Corrosion 1      Doping 1
Metallization 0    Miscellaneous 0  Oxide 10         Silicon 1
Contamination 23   Corrosion 1      Doping 1         Metallization 0
Miscellaneous 1    Oxide 8          Silicon 2
;
run;