Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The CPM Procedure

Example 2.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 2.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 2.4.1 displays only the critical activities in the project, while the second calendar in Output 2.4.2 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 start in December.

   proc cpm data=widgaoa out=save
      date='2dec91'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  */
   proc calendar schedule
        data=crit;
      id e_start;
      where e_start <= '31dec91'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';
   proc calendar schedule data=save;
      id e_start;
      where e_start <= '31dec91'd;
      var task;
      dur days;
   run;

Output 2.4.1: Project Calendar: Critical Activities

Printing the Schedule on a Calendar
Critical Activities in December

---------------------------------------------------------------------------------------------------
|                                                                                                 |
|                                         December  1991                                          |
|                                                                                                 |
|-------------------------------------------------------------------------------------------------|
|   Sunday    |   Monday    |   Tuesday   |  Wednesday  |  Thursday   |   Friday    |  Saturday   |
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|      1      |      2      |      3      |      4      |      5      |      6      |      7      |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|             |+===========================Approve Plan============================+|+=Drawings==>|
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|      8      |      9      |     10      |     11      |     12      |     13      |     14      |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|<===========================================Drawings============================================>|
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|     15      |     16      |     17      |     18      |     19      |     20      |     21      |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|<========Drawings=========+|+=============================Prototype=============================>|
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|     22      |     23      |     24      |     25      |     26      |     27      |     28      |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|<===========================================Prototype===========================================>|
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|     29      |     30      |     31      |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|<===============Prototype===============+|             |             |             |             |
---------------------------------------------------------------------------------------------------

Output 2.4.2: Project Calendar: All Activities

Printing the Schedule on a Calendar
Early Start Schedule for December

---------------------------------------------------------------------------------------------------
|                                                                                                 |
|                                         December  1991                                          |
|                                                                                                 |
|-------------------------------------------------------------------------------------------------|
|   Sunday    |   Monday    |   Tuesday   |  Wednesday  |  Thursday   |   Friday    |  Saturday   |
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|      1      |      2      |      3      |      4      |      5      |      6      |      7      |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |+Write Specs>|
|             |             |             |             |             |             |+Anal. Marke>|
|             |+===========================Approve Plan============================+|+=Drawings==>|
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|      8      |      9      |     10      |     11      |     12      |     13      |     14      |
|             |             |             |             |             |             |             |
|<=====================Write Specs=====================+|             |             |             |
|<====================Anal. Market=====================+|+==============Mkt. Strat.==============>|
|<===========================================Drawings============================================>|
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|     15      |     16      |     17      |     18      |     19      |     20      |     21      |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|<==========================================Mkt. Strat.==========================================+|
|<========Drawings=========+|+=============================Prototype=============================>|
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|     22      |     23      |     24      |     25      |     26      |     27      |     28      |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|<===========================================Prototype===========================================>|
|-------------+-------------+-------------+-------------+-------------+-------------+-------------|
|     29      |     30      |     31      |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|             |             |             |             |             |             |             |
|<===============Prototype===============+|             |             |             |             |
---------------------------------------------------------------------------------------------------

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.