Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The NETDRAW Procedure

Example 5.3: Spanning Multiple Pages

In this example, the Schedule data set produced by PROC CPM is displayed in a graphics network. As in the second part of Example 5.1, the procedure displays the duration as well as the early and late start and finish times and the total float and free float of each activity in the node corresponding to that activity. The network cannot fit on one page and is drawn across three pages, as shown in Output 5.3.1.

This example also illustrates several options for controlling the appearance of the network diagram. The pattern statements set a background fill color for all the nodes of the network (PATTERN1 and PATTERN2). The COUTLINE= and CCRITOUT= options set the outline colors for noncritical and critical activities, respectively. Recall that the procedure uses the values of the E_FINISH and L_FINISH variables to determine if an activity is critical. The CARCS= and CCRITARCS= options color the regular arcs blue and the critical arcs (arcs connecting critical activities) red, respectively. The CTEXT= options sets the color of the text to blue, while the FONT= option uses the Swiss font for all text. Finally, the LWIDTH= option sets the default width for all the lines in the network, and the LWCRIT= option further highlights the critical arcs by drawing them with thicker lines.

In this invocation of PROC NETDRAW, the SEPARATEARCS option is used so that the two parallel arcs leading into the activity `Test Market' (one from `Mkt.Strat.' and the other from `Init. Prod.') are drawn along separate tracks instead of along a single track as in Example 5.2.

   goptions hpos=80 vpos=50 border;
   pattern1 c=ltgray v=s;
   pattern2 c=ltgray v=s;

   title c=blue j=l f=swiss h=1.5
                            ' Project: Widget Manufacture';
   title2 c=blue f=swiss j=l h=1.5 ' Schedule Information';
   footnote c=blue f=swiss j=r 'Spanning Multiple Pages ';
   proc netdraw data=sched graphics;
      actnet / act=task
               succ=(succ1 succ2 succ3)
               dur = days
               coutline=blue
               ccritout=red
               carcs=blue
               ccritarcs=red
               ctext=blue
               lwidth=1
               lwcrit=2
               separatearcs
               font=swiss;
      run;

Output 5.3.1: Project Schedule
ndr3g1p1.gif (5891 bytes)

ndr3g1p2.gif (5637 bytes)

ndr3g1p3.gif (3200 bytes)

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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