Chapter Contents

Previous

Next
The CALENDAR Procedure

Procedure Syntax


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, PROC CALENDAR produces a schedule calendar.
Tip: Supports the Output Delivery System (see Chapter 2, "Fundamental Concepts for Using Base SAS Procedures")
Reminder: You can use the FORMAT, LABEL, and WHERE statements as well as any global statements.

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.

To do this Use this statement
Create summary calendar MEAN SUM
Create schedule calendar DUR or FIN
Create multiple calendars CALID
Specify holidays HOLISTARTHOLIDURHOLIFIN HOLIVAR
Control display OUTSTARTOUTDUROUTFIN
Specify grouping BYCALID


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.