Add three HTML variables to GRAINLDR to create the NEWGRAIN data set. Each HTML variable is assigned the targets for a certain variable value. These targets are specified by the HREF attribute within an AREA element in the HTML file. Each HREF value specifies the HTML body file and, can also reference the name of the anchor within the body file that identifies the target graph. The HTML variable YEARDRILL contains the targets for the values of the variable YEAR.
data newgrain; set grainldr; length yeardrill typedrill countrydrill $ 40; if year=1995 then yeardrill="HREF='year95_body.html'"; else if year=1996 then yeardrill="HREF='year96_body.html'";