Features: |
VALUE statement |
Other features: |
PROC PRINT FORMAT statement |
data mydata; format population comma12.0; label st='State'; label population='Population'; input st $ 1-2 population; year=2000; datalines; VA 7078515 NC 8049313 SC 4012012 GA 8186453 FL 15982378 ; run;
proc format; value $COMPND 'VA'='<a href=http://www.va.gov>VA</a>' 'NC'='<a href=http://www.nc.gov>NC</a>' 'SC'='<a href=http://www.sc.gov>SC</a>' 'GA'='<a href=http://www.ga.gov>GA</a>' 'FL'='<a href=http://www.fl.gov>FL</a>'; run;
ods html file="c:\mySAS\html\Drilldown.htm" (title="An ODS HTML Drill-down Table Using a User-defined Format in the PRINT Procedure"); title h=.25in "Year 2000 U.S. Census Population"; title2 color=gray "An ODS HTML Drill-down Table Using a User-defined Format in the PRINT Procedure"; footnote color=gray "(Click the underlined text to drill down.)";
options nodate; proc print data=mydata label noobs; var st population; format st $compnd. ; run; ods html close; ods html;
data mydata; format population comma12.0; label st='State'; label population='Population'; input st $ 1-2 population; year=2000; datalines; VA 7078515 NC 8049313 SC 4012012 GA 8186453 FL 15982378 ; run;
proc format; value $COMPND 'VA'='<a href=http://www.va.gov>VA</a>' 'NC'='<a href=http://www.nc.gov>NC</a>' 'SC'='<a href=http://www.sc.gov>SC</a>' 'GA'='<a href=http://www.ga.gov>GA</a>' 'FL'='<a href=http://www.fl.gov>FL</a>'; run;
ods html file="c:\mySAS\html\Drilldown.htm" (title="An ODS HTML Drill-down Table Using a User-defined Format in the PRINT Procedure"); title h=.25in "Year 2000 U.S. Census Population"; title2 color=gray "An ODS HTML Drill-down Table Using a User-defined Format in the PRINT Procedure"; footnote color=gray "(Click the underlined text to drill down.)";