/* * Change the PATH macro variable to an appropriate temp directory */ %global path; /*%let path = \\nas101\etba$\Malcolm\temp\;*/ filename fOut "&path.test.html"; /* * Write HTML document */ data _null_; file fOut; set work.y_grid(in=inYGrid1) work.y_grid(in=inYGrid2) work.points(in=inPts) work.points2(in=inPts2) work.points3(in=inPts3) end=bEnd; attrib strOut length=$1024 label='Output string'; if (_N_ = 1) then do; /* * Header */ put ''; put ''; put '
'; put ''; put '| Hour Ending | '; put 'Position (MWh) | '; put 'Price ($/MWh) | '; put 'Value ($) | '; put '
|---|---|---|---|
| ', strip(putn(he, '2.')), ' | ', byte(13), '', strip(putn(x, 'comma12.')), ' | ', byte(13), '', strip(putn(y, 'dollar12.2')), ' | ', byte(13), '', strip(putn(z, 'dollar12.')), ' | ', byte(13), '
| ', 'Total', ' | ', byte(13), '', strip(putn(x, 'comma12.')), ' | ', byte(13), '', strip(putn(y, 'dollar12.2')), ' | ', byte(13), '', strip(putn(z, 'dollar12.')), ' | ', byte(13), '