Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The NETDRAW Procedure

Example 5.1: Line-Printer Network Diagram

This example uses the data set WIDGET that was used in Example 2.2 in Chapter 2, "The CPM Procedure," to illustrate the Activity-on-Node representation of the project. The following program invokes PROC NETDRAW twice. First, the Activity data set WIDGET is used as input to the procedure. The activity and successor information is identified via the ACTIVITY= and SUCCESSOR= options in the ACTNET statement. The LINEPRINTER option is specified, producing the line-printer network diagram shown in Output 5.1.1.

   /* Activity-on-Node representation of the project */
   data widget;
      input task $ 1-12 days succ1 $ 19-30
                             succ2 $ 33-44
                             succ3 $ 47-58;
      datalines;
   Approve Plan   5  Drawings      Anal. Market  Write Specs
   Drawings      10  Prototype
   Anal. Market   5  Mkt. Strat.
   Write Specs    5  Prototype
   Prototype     15  Materials     Facility
   Mkt. Strat.   10  Test Market   Marketing
   Materials     10  Init. Prod.
   Facility      10  Init. Prod.
   Init. Prod.   10  Test Market   Marketing     Evaluate
   Evaluate      10  Changes
   Test Market   15  Changes
   Changes        5  Production
   Production     0
   Marketing      0
   ;

   title 'Widget Manufacture';
   options ps=32 ls=78;
   proc netdraw data=widget lineprinter;
      actnet / activity=task successor=(succ1 succ2 succ3);
      run;

Output 5.1.1: Line-Printer Network Diagram

Widget Manufacture

                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                   --------------                        --------------       
                -->|Drawings    |---                  -->|Materials   |---    
                |  --------------  |                  |  --------------  |    
                |                  |                  |                  |    
                |                  |                  |                  |    
                |                  |                  |------------------+--  
                |                  |                  |                  |    
                |                  |                  |                  |    
--------------  |  --------------  |  --------------  |  --------------  |    
|Approve Plan|--+->|Write Specs |---->|Prototype   |--+->|Facility    |---->  
--------------  |  --------------     --------------  |  --------------       
                |                                     |                       
                |                                     |                       
                |                                     |                       
                |                                     |                       
                |                                     |                       
                |  --------------     --------------  |                       
                -->|Anal. Market|---->|Mkt. Strat. |------------------------  
                   --------------     --------------                          
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              

                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                   --------------                                             
                -->|Test Market |---                                          
                |  --------------  |                                          
                |                  |                                          
                |                  |                                          
----------------|                  |                                          
                |                  |                                          
                |                  |                                          
--------------  |  --------------  |  --------------     --------------       
|Init. Prod. |--+->|Evaluate    |---->|Changes     |---->|Production  |       
--------------  |  --------------     --------------     --------------       
                |                                                             
                |                                                             
                |                                                             
                |                                                             
                |                                                             
                |  --------------                                             
------------------>|Marketing   |                                             
                   --------------                                             
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              


Next, PROC CPM is invoked to schedule the project, and the resulting Schedule data set is used as input to the NETDRAW procedure. In addition to the ACTIVITY= and SUCCESSOR= options, the DURATION= option is used in the ACTNET statement. The DURATION= option adds the values of the DURATION variable within each node of the network. The procedure also displays the values of the E_START, E_FINISH, L_START, L_FINISH, T_FLOAT, and F_FLOAT variables within each node. The network is displayed in Output 5.1.2.

   proc cpm data=widget out=sched
            date='2dec91'd;
      activity task;
      successor succ1 succ2 succ3;
      duration days;
      run;

   options ps=45 ls=90;
   title2 'Schedule Information';
   proc netdraw data=sched lineprinter;
      actnet / activity=task
               successor=(succ1 succ2 succ3)
               duration = days;
      run;

Output 5.1.2: Project Schedule

Widget Manufacture
Schedule Information

                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                              -------------------------                                   
                              |Drawings         Dur:10|                                   
                           -->|ES:07DEC91   EF:16DEC91|---                             -->
                           |  |LS:07DEC91   LF:16DEC91|  |                             |  
                           |  |TF: 0        FF: 0     |  |                             |  
                           |  -------------------------  |                             |  
                           |                             |                             |  
                           |                             |                             |  
                           |                             |                             |--
                           |                             |                             |  
                           |                             |                             |  
-------------------------  |  -------------------------  |  -------------------------  |  
|Approve Plan     Dur: 5|  |  |Write Specs      Dur: 5|  |  |Prototype        Dur:15|  |  
|ES:02DEC91   EF:06DEC91|--+->|ES:07DEC91   EF:11DEC91|---->|ES:17DEC91   EF:31DEC91|--+->
|LS:02DEC91   LF:06DEC91|  |  |LS:12DEC91   LF:16DEC91|     |LS:17DEC91   LF:31DEC91|  |  
|TF: 0        FF: 0     |  |  |TF: 5        FF: 5     |     |TF: 0        FF: 0     |  |  
-------------------------  |  -------------------------     -------------------------  |  
                           |                                                           |  
                           |                                                           |  
                           |                                                           |  
                           |                                                           |  
                           |                                                           |  
                           |  -------------------------     -------------------------  |  
                           |  |Anal. Market     Dur: 5|     |Mkt. Strat.      Dur:10|  |  
                           -->|ES:07DEC91   EF:11DEC91|---->|ES:12DEC91   EF:21DEC91|-----
                              |LS:06JAN92   LF:10JAN92|     |LS:11JAN92   LF:20JAN92|     
                              |TF:30        FF: 0     |     |TF:30        FF:30     |     
                              -------------------------     -------------------------     
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          

                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
-------------------------                                   -------------------------     
|Materials        Dur:10|                                   |Test Market      Dur:15|     
|ES:01JAN92   EF:10JAN92|---                             -->|ES:21JAN92   EF:04FEB92|---  
|LS:01JAN92   LF:10JAN92|  |                             |  |LS:21JAN92   LF:04FEB92|  |  
|TF: 0        FF: 0     |  |                             |  |TF: 0        FF: 0     |  |  
-------------------------  |                             |  -------------------------  |  
                           |                             |                             |  
                           |                             |                             |  
---------------------------+-----------------------------|                             |  
                           |                             |                             |  
                           |                             |                             |  
-------------------------  |  -------------------------  |  -------------------------  |  
|Facility         Dur:10|  |  |Init. Prod.      Dur:10|  |  |Evaluate         Dur:10|  |  
|ES:01JAN92   EF:10JAN92|---->|ES:11JAN92   EF:20JAN92|--+->|ES:21JAN92   EF:30JAN92|---->
|LS:01JAN92   LF:10JAN92|     |LS:11JAN92   LF:20JAN92|  |  |LS:26JAN92   LF:04FEB92|     
|TF: 0        FF: 0     |     |TF: 0        FF: 0     |  |  |TF: 5        FF: 5     |     
-------------------------     -------------------------  |  -------------------------     
                                                         |                                
                                                         |                                
                                                         |                                
                                                         |                                
                                                         |                                
                                                         |  -------------------------     
                                                         |  |Marketing        Dur: 0|     
----------------------------------------------------------->|ES:21JAN92   EF:21JAN92|     
                                                            |LS:10FEB92   LF:10FEB92|     
                                                            |TF:20        FF:20     |     
                                                            -------------------------     
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          

                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
-------------------------     -------------------------                                   
|Changes          Dur: 5|     |Production       Dur: 0|                                   
|ES:05FEB92   EF:09FEB92|---->|ES:10FEB92   EF:10FEB92|                                   
|LS:05FEB92   LF:09FEB92|     |LS:10FEB92   LF:10FEB92|                                   
|TF: 0        FF: 0     |     |TF: 0        FF: 0     |                                   
-------------------------     -------------------------                                   
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          
                                                                                          

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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