The NETDRAW Procedure |
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
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
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.