The GANTT Procedure

PROC GANTT Statement

PROC GANTT options ;

The following options can appear in the PROC GANTT statement.

ANNOTATE=SAS-data-set
ANNO=SAS-data-set

specifies the input data set that contains the appropriate Annotate variables for the purpose of adding text and graphics to the Gantt chart. The data set specified must be an Annotate-type data set. See the section Annotate Processing for information specifically on annotate processing with the GANTT procedure.

The data set specified with the ANNOTATE= option in the PROC GANTT statement is a global ANNOTATE= data set, in the sense that the information in this data set is displayed on every Gantt chart produced in the current invocation of PROC GANTT. This option is available only in graphics mode.

See Example 8.21, Using the SAS/GRAPH ANNOTATE= Option, for further illustration of this option.

CALEDATA=SAS-data-set
CALENDAR=SAS-data-set

identifies a SAS data set that specifies the work pattern during a standard week for each of the calendars that is to be used in the project. Each observation of this data set (also referred to as the Calendar data set) contains the name or the number of the calendar being defined in that observation, the names of the shifts or work patterns used each day, and, optionally, a standard workday length in hours. For details on the structure of this data set, see the section Multiple Calendars and Holidays. The work shifts referred to in the CALEDATA data set are defined in the WORKDATA data set.

DATA=SAS-data-set

names the SAS data set that carries the schedule information to be used by PROC GANTT. If the DATA= option is omitted, the most recently created SAS data set is used. This data set, also known as the Schedule data set, contains all the time variables (early, late, actual, resource-constrained, and baseline start and finish times, and any other variables to be specified in a CHART statement) that are to be plotted on the chart. For projects that use multiple calendars, this data set also identifies the calendar that is used by each activity. The Schedule data set also contains precedence information when drawing a Logic Gantt chart in graphics mode. See the section Schedule Data Set for more details.

FULLSCREEN
FS

indicates that the Gantt chart be drawn in full-screen mode. This mode enables you to scroll horizontally and vertically through the output using commands, pull-down menus, or function keys. See the section Full-Screen Version for more information.

GOUT=graphics catalog

specifies the name of the graphics catalog used to save the output produced by PROC GANTT for later replay. This option is available only in graphics mode.

GRAPHICS

indicates that the Gantt chart produced be of high-resolution quality. This is the default mode of display. If you invoke the GANTT procedure in Graphics mode, but you do not have SAS/GRAPH software licensed at your site, the procedure stops and issues an error message. See the section Graphics Version for more information.

HOLIDATA=SAS-data-set

names the SAS data set that specifies holidays. These holidays can be associated with specific calendars that are also identified in the HOLIDATA data set (also referred to as the Holiday data set). The HOLIDATA= option must be used with the HOLIDAY= option in the CHART statement, which specifies the variable in the SAS data set that contains the start time of holidays. Optionally, the data set can include a variable that specifies the length of each holiday or a variable that identifies the finish time of each holiday (if the holidays are longer than one unit of the INTERVAL= option). For projects involving multiple calendars, this data set can also include the variable named by the CALID= option that identifies the calendar to be associated with each holiday.

IMAGEMAP=SAS-data-set

names the SAS data set that receives a description of the areas of a graph and a link for each area. This information is for the construction of HTML image maps. You use a SAS DATA step to process the output file and generate your own HTML files. The graph areas correspond to the link information that comes from the WEB variable in the schedule data set. This gives you complete control over the appearance and structure of your HTML pages.

LABDATA=SAS-data-set
LABELDATA=SAS-data-set
LABEL=SAS-data-set

specifies the input data set that contains the label specific information. This option is required to initiate the automatic text annotation of the Gantt chart. See the section Label Data Set for information on the variables it can contain. This option is available only in graphics mode.

LABMAXINT=n
LMI=n

specifies the maximum number of digits in the integer part when displaying an unformatted numeric as a string. The default value is 16. The maximum number of decimal positions is specified using the MAXDEC= option in the PROC GANTT statement. This option is applicable only to labels defined with the Label data set.

LINEPRINTER
LP

indicates that the Gantt chart be drawn in line-printer mode.

MAXDEC=n
M=n

indicates the maximum number of decimal positions displayed for a number. A decimal specification in a format overrides a MAXDEC= specification. The default value of MAXDEC= is 2.

PRECDATA=SAS-data-set

names the SAS data set that contains the variables that define the precedence constraints in AON format. This data set is required if the Schedule data set does not contain the required precedence information as, for example, when the COLLAPSE option in PROC CPM causes some observations to be excluded from the Schedule data set. When this option is specified, it is mandatory that the ACTIVITY variable exist in both data sets and be identical in both type and length. This option is available only in graphics mode.

SPLIT='character'
S='character'

splits labels used as column headings where the split character appears. When you define the value of the split character, you must enclose it in single quotes. In PROC GANTT, column headings for ID variables consist of either variable labels (if they are present and space permits) or variable names. If the variable label is used as the column heading, then the split character determines where the column heading is to be split.

WORKDATA=SAS-data-set
WORKDAY=SAS-data-set

identifies a SAS data set that defines the work pattern during a standard working day. Each numeric variable in this data set (also referred to as the Workday data set) is assumed to denote a unique shift pattern during one working day. The variables must be formatted as SAS time values, and the observations are assumed to specify, alternately, the times when consecutive shifts start and end.