data e;
  filename e 'spain86.dat';
  infile e;
  length province $ 25;
  input seats 1-2 party $ votes province numelec vemitido validos mag;
 *seats = n of seats won by this party in this province;
 *votes = n of votes won by this party in this province;
 *numelec = n of electors in this province;
 *vemitido = n of ballots cast in this province;
 *validos = n of valid ballots cast in this province;
 *mag = district magnitude, n of seats available in this province;
  if seats=. then seats=0;
run;