CALENDAR Procedure

VAR Statement

Specifies the variables that you want to display for each activity.
Alias: VARIABLE
Calculating a Schedule Based on Completion of Predecessor Tasks

Syntax

Required Argument

variable(s)
specifies one or more variables that you want to display in the calendar.
Range:The values of variable can be either character or numeric.
Restriction:These variables must be in the activities data set.
Tip:You can apply a format to this variable.

Details

When VAR Is Not Used

If you do not use a VAR statement, then the procedure displays all variables in the activities data set in the order in which they occur in the data set, except for the BY, CALID, START, DUR, and FIN variables. However, not all variables are displayed if the LINESIZE= and PAGESIZE= settings do not allow enough space in the calendar.

Display of Variables

  • PROC CALENDAR displays variables in the order in which they appear in the VAR statement. Not all variables are displayed, however, if the LINESIZE= and PAGESIZE= settings do not allow enough space in the calendar.
  • PROC CALENDAR also displays any variable named in a SUM or MEAN statement for each activity in the calendar output. It displays the variable even if you do not name that variable in a VAR statement.