Features: |
|
Other features: |
PROC FORMAT: PICTURE statement |
data meals; input date : date7. Brkfst Lunch Dinner; datalines; 01Dec08 123 234 238 02Dec08 188 188 198 03Dec08 123 183 176 04Dec08 200 267 243 05Dec08 176 165 177 08Dec08 178 198 187 09Dec08 165 176 187 10Dec08 187 176 231 11Dec08 176 187 222 12Dec08 187 187 123 15Dec08 176 165 177 16Dec08 156 . 167 17Dec08 198 143 167 18Dec08 178 198 187 19Dec08 165 176 187 22Dec08 187 187 123 ;
data closed; input date date. holiday $ 11-25; datalines; 26DEC08 Repairs 29DEC08 Repairs 30DEC08 Repairs 31DEC08 Repairs 23DEC08 Vacation 24DEC08 Christmas Eve 25DEC08 Christmas ;
proc sort data=meals; by date; run;
proc format; picture bfmt other = '000 Brkfst'; picture lfmt other = '000 Lunch '; picture dfmt other = '000 Dinner'; run;
options formchar="|----|+|---+=|-/\<>*";
proc calendar data=meals holidata=closed; start date;
holistart date; holiname holiday;
sum brkfst lunch dinner / format=4.0; mean brkfst lunch dinner / format=6.2; label brkfst = 'Breakfasts Served' lunch = ' Lunches Served' dinner = ' Dinners Served'; format brkfst bfmt. lunch lfmt. dinner dfmt.;
title 'Meals Served in Company Cafeteria'; title2 'Mean Number by Business Day'; run;
title;
data meals; input date : date7. Brkfst Lunch Dinner; datalines; 01Dec08 123 234 238 02Dec08 188 188 198 03Dec08 123 183 176 04Dec08 200 267 243 05Dec08 176 165 177 08Dec08 178 198 187 09Dec08 165 176 187 10Dec08 187 176 231 11Dec08 176 187 222 12Dec08 187 187 123 15Dec08 176 165 177 16Dec08 156 . 167 17Dec08 198 143 167 18Dec08 178 198 187 19Dec08 165 176 187 22Dec08 187 187 123 ;
data closed; input date date. holiday $ 11-25; datalines; 26DEC08 Repairs 29DEC08 Repairs 30DEC08 Repairs 31DEC08 Repairs 23DEC08 Vacation 24DEC08 Christmas Eve 25DEC08 Christmas ;
proc format; picture bfmt other = '000 Brkfst'; picture lfmt other = '000 Lunch '; picture dfmt other = '000 Dinner'; run;