Add the HTML variable to CITYTEMP and create the NEWTEMP data set. The HTML variable CITYDRILL contains the target locations to associate with the different values of the variable CITY. Each location for CITYDRILL references the file city_reports.html, wh ich will be created by this program. Each location ends with the default anchor name (IDX1, IDX2, and IDX3) that ODS will assign to the target output when it creates that output in file city_reports.html.
data newtemp;
   set citytemp;
   length citydrill $ 40;
   if city='Minn' then
      citydrill='HREF="city_reports.html#IDX1"';
   else if city='Phoenix' then
      citydrill='HREF="city_reports.html#IDX2"';
   else if city='Raleigh' then
      citydrill='HREF="city_reports.html#IDX3"';