The GANTT Procedure

BY Statement

BY variables ;

A BY statement can be used with PROC GANTT to obtain separate Gantt charts for observations in groups defined by the BY variables. When a BY statement appears, the procedure expects the schedule data to be sorted in order of the BY variables. If your Schedule data set is not sorted, use the SORT procedure with a similar BY statement to sort the data. The chart for each BY group is formatted separately based only on the observations within that group.