Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The GANTT Procedure

Example 4.7: Using the MINDATE= and MAXDATE= Options

In this example, the SAVE data set from Example 4.6, is used to display the schedule of the project over a limited time period. The start date and end date are specified by the MINDATE= and MAXDATE= options, respectively, in the CHART statement. As in Example 4.5, the COMPRESS option is used to ensure that the region of the Gantt chart lying between January 2, 1992, and February 3, 1992, fits on a single page. The specification REF='6JAN92'D TO '3FEB92'D BY WEEK causes PROC GANTT to draw reference lines at the start of every week. Further, the reference lines are labeled using the REFLABEL option. The CREF= and LREF= options are specified in the CHART statement to indicate the color and line style, respectively, of the reference lines. The CFRAME= option is used to specify the color of the frame fill.
   title f=swiss 'Gantt Example 7';
   title2 f=swiss 'Using the MINDATE= and MAXDATE= Options';

   goptions vpos=40 hpos=100;

   * set up required pattern statements;

   pattern1 c=blue v=s; /* duration of a noncrit. activity */
   pattern2 c=blue v=e; /* slack time for a noncrit. act.  */
   pattern3 c=red  v=s; /* duration of a critical activity */


   * plot the schedule;

   proc gantt data=save;
      chart / mindate='2jan92'd maxdate='3feb92'd
              ref='6jan92'd to '3feb92'd by week
              reflabel cref=black lref=2
              cframe=cyan
              dur=days font=swiss nojobnum
              compress;
      id task;
   run;

Output 4.7.1: Using the MINDATE= and MAXDATE= Options in Graphics Mode
ga07.gif (6063 bytes)

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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