There is one input table,
called CHORES, that contains the following data:
data chores;
input Project $ Hours Season $;
datalines;
weeding 48 summer
pruning 12 winter
mowing 36 summer
mulching 17 fall
raking 24 fall
raking 16 spring
planting 8 spring
planting 8 fall
sweeping 3 winter
edging 16 summer
seeding 6 spring
tilling 12 spring
aerating 6 spring
feeding 7 summer
rolling 4 winter
;
proc sql;
title 'Garden Chores';
select * from chores;
quit;
Sample Input Data for a Customized Sort
You want to reorder
this chore list so that all the chores are grouped by season, starting
with spring and progressing through the year. Simply ordering by
Season makes the list appear in alphabetical sequence: fall, spring,
summer, winter.