The NETDRAW Procedure

Example 7.9: Time-Scaled Network Diagram

This example illustrates the use of the TIMESCALE and ALIGN= options to draw time-scaled network diagrams. The Schedule data set WIDGUPD, produced by PROC CPM in the previous example, is used. First, PROC NETDRAW is invoked with the TIMESCALE option without any ALIGN= specification. By default, the procedure aligns the nodes to coincide with the early start times of the activities. The network spans two pages(HPAGES=2 VPAGES=1), as shown in Output 7.9.1. The HMARGIN= and VMARGIN= options add extra space around the margins.

  
    title  j=l h=2 ' Project: Widget Manufacture'; 
    title2 j=l h=1.5 ' Date: December 19, 2003'; 
    footnote j=l ' Task Name / Early Finish Within Node' 
             j=r  'Time Scaled: Default Alignment '; 
  
    proc netdraw data=widgupd graphics; 
       actnet / act=task 
                succ=(succ1 succ2 succ3) 
                ybetween = 8 
                separatearcs 
                novcenter 
                id=(task e_finish) 
                nodefid 
                nolabel 
                showstatus 
                carcs=blue 
                ccritarcs=red 
                vmargin=5 
                hmargin=5 
                timescale 
                htext=2 pcompress 
                hpages=2 vpages=1 
                nopagenumber; 
       run;
 

Output 7.9.1: TIMESCALE Option: Default Alignment
ndr9g1p1.gif (13687 bytes)

ndr9g1p2.gif (13589 bytes)

Next, PROC NETDRAW is invoked with several of the time-scale options:

  
    footnote j=l h=1.5 ' Task Name / Late Finish Within Node' 
             j=r 'Time Scaled: Align = Late Start '; 
  
    proc netdraw data=widgupd graphics; 
       actnet / act=task 
                succ=(succ1 succ2 succ3) 
                ybetween = 10 
                separatearcs 
                pcompress 
                novcenter 
                id=(task l_finish) 
                nodefid 
                nolabel 
                boxwidth=5 
                showstatus 
                carcs=cyan 
                ccritarcs=red 
                vmargin=10 
                align=l_start 
                frame 
                autoref 
                lref=33 
                cref=cyan 
                showbreak 
                htext=2; 
       run;
 

Output 7.9.2: Timescale Option: ALIGN= L_START
ndr9g2.gif (16546 bytes)

Previous Page | Next Page | Top of Page