Example 4.4 Displaying the Schedule on a Calendar
This example shows how you can use the output from CPM to display calendars containing the critical path schedule and the
early start schedule. The example uses the network described in Example 4.2 and assumes that the data set SAVE
contains the project schedule. The following program invokes PROC CALENDAR to produce two calendars; the first calendar in
Output 4.4.1 displays only the critical activities in the project, while the second calendar in Output 4.4.1 displays all the activities in the project. In both invocations of PROC CALENDAR, a WHERE statement is used to display only
the activities that are scheduled to finish in December.
proc cpm data=widgaoa out=save
date='1dec03'd interval=day;
tailnode tail;
headnode head;
duration days;
id task;
run;
proc sort data=save out=crit;
where t_float=0;
by e_start;
run;
title 'Printing the Schedule on a Calendar';
title2 'Critical Activities in December';
/* print the critical act. calendar */
options nodate pageno=1 pagesize=50;
proc calendar schedule
data=crit;
id e_start;
where e_finish <= '31dec03'd;
var task;
dur days;
run;
/* sort data for early start calendar */
proc sort data=save;
by e_start;
/* print the early start calendar */
title2 'Early Start Schedule for December';
options nodate pageno=1 pagesize=50;
proc calendar schedule data=save;
id e_start;
where e_finish <= '31dec03'd;
var task;
dur days;
run;
Output 4.4.1: Project Calendar: All Activities
------------------------------------------------------------------------------
| |
| December 2003 |
| |
|----------------------------------------------------------------------------|
| Sunday | Monday | Tuesday |Wednesday | Thursday | Friday | Saturday |
|----------+----------+----------+----------+----------+----------+----------|
| | 1 | 2 | 3 | 4 | 5 | 6 |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| |+====================Approve Plan====================+|+Drawings>|
|----------+----------+----------+----------+----------+----------+----------|
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| | | | | | | |
| | | | | | | |
| | | | | | | |
|<=================================Drawings=================================>|
|----------+----------+----------+----------+----------+----------+----------|
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| | | | | | | |
| | | | | | | |
| | | | | | | |
|<=====Drawings======+|+=====================Prototype======================>|
|----------+----------+----------+----------+----------+----------+----------|
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| | | | | | | |
| | | | | | | |
| | | | | | | |
|<================================Prototype=================================>|
|----------+----------+----------+----------+----------+----------+----------|
| 28 | 29 | 30 | 31 | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
|<==========Prototype===========+| | | | |
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
| |
| December 2003 |
| |
|----------------------------------------------------------------------------|
| Sunday | Monday | Tuesday |Wednesday | Thursday | Friday | Saturday |
|----------+----------+----------+----------+----------+----------+----------|
| | 1 | 2 | 3 | 4 | 5 | 6 |
| | | | | | | |
| | | | | | |+Write Sp>|
| | | | | | |+Study Ma>|
| |+====================Approve Plan====================+|+Drawings>|
|----------+----------+----------+----------+----------+----------+----------|
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| | | | | | | |
|<===============Write Specs===============+| | | |
|<==============Study Market===============+|+=========Mkt. Strat.==========>|
|<=================================Drawings=================================>|
|----------+----------+----------+----------+----------+----------+----------|
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| | | | | | | |
| | | | | | | |
|<===============================Mkt. Strat.================================+|
|<=====Drawings======+|+=====================Prototype======================>|
|----------+----------+----------+----------+----------+----------+----------|
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| | | | | | | |
| | | | | | | |
| | | | | | | |
|<================================Prototype=================================>|
|----------+----------+----------+----------+----------+----------+----------|
| 28 | 29 | 30 | 31 | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
|<==========Prototype===========+| | | | |
------------------------------------------------------------------------------
|