Procedure features: |
PROC CALENDAR statement options:
|
DUR statement |
HOLISTART
statement |
HOLIVAR statement |
HOLIDUR statement |
START statement |
|
Other features: |
PROC SORT statement |
BY statement |
5-day default calendar |
|
This example
-
creates a schedule calendar
-
uses one of the two default work patterns: 8-hour day, 5-day week
-
schedules activities around
holidays
-
displays a 5-day week
|
data allacty;
input date : date7. event $ 9-36 who $ 37-48 long;
datalines;
01JUL96 Dist. Mtg. All 1
17JUL96 Bank Meeting 1st Natl 1
02JUL96 Mgrs. Meeting District 6 2
11JUL96 Mgrs. Meeting District 7 2
03JUL96 Interview JW 1
08JUL96 Sales Drive District 6 5
15JUL96 Sales Drive District 7 5
08JUL96 Trade Show Knox 3
22JUL96 Inventors Show Melvin 3
11JUL96 Planning Council Group II 1
18JUL96 Planning Council Group III 1
25JUL96 Planning Council Group IV 1
12JUL96 Seminar White 1
19JUL96 Seminar White 1
18JUL96 NewsLetter Deadline All 1
05JUL96 VIP Banquet JW 1
19JUL96 Co. Picnic All 1
16JUL96 Dentist JW 1
24JUL96 Birthday Mary 1
25JUL96 Close Sale WYGIX Co. 2
; |
|
data hol;
input date : date7. holiday $ 11-25 holilong @27;
datalines;
05jul96 Vacation 3
04jul96 Independence 1
; |
|
proc sort data=allacty;
by date;
run; |
|
options nodate pageno=1 linesize=132 pagesize=60; |
|
proc calendar data=allacty holidata=hol weekdays; |
|
start date;
dur long; |
|
holistart date;
holivar holiday;
holidur holilong; |
|
title1 'Summer Planning Calendar: Julia Cho';
title2 'President, Community Bank';
run; |
Schedule Calendar: 5-Day Week with Holidays
Summer Planning Calendar: Julia Cho 1
President, Community Bank
-----------------------------------------------------------------------------------------------------------------------------------
| |
| July 1996 |
| |
|---------------------------------------------------------------------------------------------------------------------------------|
| Monday | Tuesday | Wednesday | Thursday | Friday |
|-------------------------+-------------------------+-------------------------+-------------------------+-------------------------|
| 1 | 2 | 3 | 4 | 5 |
| | | |******Independence*******|********Vacation*********|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | |+=====Interview/JW======+| | |
|+====Dist. Mtg./All=====+|+============Mgrs. Meeting/District 6=============+| | |
|-------------------------+-------------------------+-------------------------+-------------------------+-------------------------|
| 8 | 9 | 10 | 11 | 12 |
|********Vacation*********|********Vacation*********| | | |
| | | | | |
| | | | | |
| | | |+Planning Council/Group +|+=====Seminar/White=====+|
| | |+==============================Trade Show/Knox==============================+|
| | |+==========================Sales Drive/District 6===========================>|
| | |+====VIP Banquet/JW=====+|+============Mgrs. Meeting/District 7=============+|
|-------------------------+-------------------------+-------------------------+-------------------------+-------------------------|
| 15 | 16 | 17 | 18 | 19 |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| |+======Dentist/JW=======+| |+NewsLetter Deadline/All+|+====Co. Picnic/All=====+|
|+====================================================Sales Drive/District 7=====================================================+|
|<=============Sales Drive/District 6==============+|+=Bank Meeting/1st Natl=+|+Planning Council/Group +|+=====Seminar/White=====+|
|-------------------------+-------------------------+-------------------------+-------------------------+-------------------------|
| 22 | 23 | 24 | 25 | 26 |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | |+=====Birthday/Mary=====+|+==============Close Sale/WYGIX Co.===============+|
|+===========================Inventors Show/Melvin===========================+|+Planning Council/Group +| |
|-------------------------+-------------------------+-------------------------+-------------------------+-------------------------|
| 29 | 30 | 31 | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
-----------------------------------------------------------------------------------------------------------------------------------
|
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.