run;
data statepop2 (drop=tempvar);
length state 4;
set statepop (rename=(state=tempvar));
where tempvar in('AZ', 'NM', 'TX', 'OK');
state=stfips(tempvar);
run;
ods html body='pop-body.htm'
contents='pop-contents.htm'
page='pop-page.htm'
frame='pop-frame.htm'
path='../ods'
(url=none);
ods select basicmeasures testsforlocation;
proc univariate data=statepop2 mu0=3.5;
var citypop_90;
title 'United States Census of Population and Housing';
footnote 'Data from 1990';
run;
ods listing close;
goptions reset=global gunit=pct cback=white
colors=(black blue green red)
ftext=swiss ftitle=swissb htitle=6 htext=4;
data states;
set maps.us;
where state in(04, 35, 40, 48);
run;
goptions target=gif transparency noborder;
title '1990 Metropolitan Population';
title2 f=swissb '(Arizona, New Mexico, Texas, and Oklahoma)';
proc gmap map=states data=statepop2;
format citypop_90 comma9.;
id state;
prism citypop_90 / discrete;
run;
quit;
ods html close;
ods listing;
Files Produced by the HTML Destination 1099

Get SAS 9.4 Output Delivery System, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.