|
Chapter Contents |
Previous |
Next |
| The GANTT Procedure |
title c=black f=swiss 'Gantt Example 22';
data shutdown;
input act succ id & $20. dur;
datalines;
1100 1110 Start Project 0
1110 1120 Procure Pipe 10
1120 1130 Prefab Pipe Sections 5
1130 1140 Deactivate Calender 0
1140 1150 Position New Pipe 1
1150 1160 Start Dissasembly 0
1160 1170 Dissasemble Calender 2
1170 1200 Finish Dissasembly 0
1200 1300 Repair Calender 10
1300 1310 Start Assembly 0
1310 1320 Reassemble Calender 3
1320 1330 Finish Assembly 0
1330 1340 Connect Pipes 2
1340 1350 Adjust and Balance 1
1350 1360 Activate Calender 0
1360 1370 System Testing 1
1370 . Finish Project 0
;
proc cpm data=shutdown date='01jun94'd interval=day out=sched;
act act;
succ succ;
dur dur;
id id;
run;
data labels;
input act _y _xvar $ _lvar $ _yoffset _xoffset _label & $25.
_alabel _hlabel _jlabel $ _flabel $ ;
datalines;
. -1 e_start act -.3 0 . 0 1.5 . .
. -1 e_start id 2.3 0 . 0 1.5 . .
1130 . e_start . 1.5 -1 N 90 2 L orfont
1350 . e_finish . 1.5 5 M 90 2 L orfont
1200 17 e_start . 2.5 1 Start Maintenance Period 90 2 . swiss
1200 17 e_finish . 2.5 .5 Finish Maintenance Period 90 2 . swiss
1200 1 e_start . . -6 Shutdown 0 3 R .
1200 1 e_start . . 2 Maintenance 0 3 L .
1200 1 e_finish . . 6 Start-Up 0 3 L .
;
title2 f=swiss 'Automatic Text Annotation Example';
proc gantt data=sched labdata=labels maxdec=0;
chart / pcompress nolegend nojobnum dur=dur
mininterval=day scale=5
height=1.5 font=swiss
skip=3 maxdate='14jul94'd
labvar=act labsplit='/'
ref='19jun94'd '29jun94'd lref=20
;
run;
Output 4.22.1: Using the LABDATA= Option
|
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.