Creating the Stats and Stats2 Data Sets
data Stats;
input Price Quantity City $;
datalines;
3750 150 Brazil
5000 200 Canada
10250 410 France
;
data Stats2;
input Price Quantity City $;
datalines;
3750 150 Brazil
5000 200 Canada
10250 410 France
;
run;
Creating the Table1 Table Template
proc template;
define table table1;
mvar sysdate9;
dynamic colhd;
classlevels=on;
define column char_var;
generic=on;
blank_dups=on;
header=colhd;
style=cellcontents;
end;
define column num_var;
generic=on;
header=colhd;
style=cellcontents;
end;
define footer table_footer;
text 'Prepared on ' sysdate9;
end;
end;
run;
1092 Appendix 2 Example Programs

Get SAS 9.4 Output Delivery System, 4th 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.