Previous Page | Next Page

The CALENDAR Procedure

Syntax: CALENDAR Procedure


Required: You must use a START statement.
Required: For schedule calendars, you must also use a DUR or a FIN statement.
Tip: If you use a DUR or FIN statement, then PROC CALENDAR produces a schedule calendar.
Tip: Supports the Output Delivery System. See Output Delivery System: Basic Concepts in SAS Output Delivery System: User's Guide for details.
Tip: You can use the FORMAT, LABEL, and WHERE statements as well as any global statements.
Table of Contents: The CALENDAR Procedure

PROC CALENDAR <option(s)>;
START variable;
BY <DESCENDING> variable-1
<...<DESCENDING> variable-n>
<NOTSORTED>;
CALID variable
</ OUTPUT=COMBINE|MIX|SEPARATE>;
DUR variable;
FIN variable;
HOLISTART variable;
HOLIDUR variable;
HOLIFIN variable;
HOLIVAR variable;
MEAN variable(s) </ FORMAT=format-name>;
OUTSTART day-of-week;
OUTDUR number-of-days;
OUTFIN day-of-week;
SUM variable(s) </ FORMAT=format-name>;
VAR variable(s);

The following table lists the statements and options available in the CALENDAR procedure according to function.

Task Statement
Create summary calendar MEAN

SUM

Create schedule calendar DUR

FIN

Create multiple calendars CALID
Specify holidays HOLISTART

HOLIDUR

HOLIFIN

HOLIVAR

Control display OUTSTART

OUTDUR

OUTFIN

Specify grouping BY

CALID

Previous Page | Next Page | Top of Page