The GANTT Procedure |
In order to draw a Gantt chart, at the very minimum you need a Schedule data set. This data set is expected to be similar to the OUT= Schedule data set produced by PROC CPM, with each observation representing an activity in the project. It is possible to obtain a detailed Gantt chart by specifying the single statement
where the data set specified is the Schedule data set produced by PROC CPM.
As an example of this, consider the software development project in the
"Getting Started" section in Chapter 2, "The CPM Procedure." The output
schedule for this example is saved in
a data set, INTRO1, which is displayed in Figure 6.1.
The following code produces the Gantt chart shown in Figure 6.2.
proc gantt lineprinter data=intro1; run;
The DATA= option could be omitted if the INTRO1 data set is the
most recent data set created; by default, PROC GANTT uses the
_LAST_ data set.
|
You can produce a high-resolution graphics quality Gantt chart by specifying the GRAPHICS option instead of the LINEPRINTER option in the PROC GANTT statement. Graphics mode is also the default display mode. The resulting Gantt chart is shown in Figure 6.3.
proc gantt graphics data=intro1; run;
Figure 6.3: Graphics Gantt Chart
Finally, you can draw a Logic Gantt chart by defining the precedence information to PROC GANTT in AON format using the ACTIVITY= and SUCCESSOR= options in the CHART statement. The Logic Gantt chart is shown in Figure 6.4.
proc gantt data=intro1; chart / activity=activity successor=(succesr1-succesr2); run;
Figure 6.4: Logic Gantt Chart
For further examples illustrating typical invocations of the GANTT procedure when managing projects, see Chapter 1, "Introduction to Project Management."
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.