Chapter Contents

Previous

Next
The CALENDAR Procedure

Overview

The CALENDAR procedure displays data from a SAS data set in a monthly calendar format. You can produce a schedule calendar, which schedules events around holidays and nonwork periods. Or you can produce a summary calendar, which summarizes data and displays only one-day events and holidays. When you use PROC CALENDAR you can

PROC CALENDAR also contains features specifically designed to work with PROC CPM in SAS/OR software, a project management scheduling tool.


Simple Schedule Calendar -- 7-Day Default Calendar
Simple Schedule Calendar illustrates the simplest kind of schedule calendar that you can produce. This calendar output displays activities planned by a banking executive. The following statements produce Simple Schedule Calendar .

options nodate pageno=1 linesize=132 pagesize=60;

proc calendar data=allacty;
   start date;
   dur long;
run;

For the activities data set shown in this calendar, see Schedule Calendar with Holidays -- 5-Day Default .

Simple Schedule Calendar
This calendar uses one of the two default calendars, the 24-hour-day, 7-day-week calendar. [HTML Output]
 [Listing Output]


Advanced Schedule Calendar
Advanced Schedule Calendar is an advanced schedule calendar produced by PROC CALENDAR. The statements that create this calendar

For an explanation of the program that produces this calendar, see Multiple Schedule Calendars with Atypical Workshifts (Combined and Mixed Output) .

Advanced Schedule Calendar
[HTML Output]  [Listing Output]


More Advanced Scheduling and Project Management Tasks
For more complex scheduling tasks, consider using the CPM procedure in SAS/OR software. PROC CALENDAR requires that you specify the starting date of each activity. When the beginning of one task depends on the completion of others and a date slips in a schedule, recalculating the schedule can be time-consuming. Instead of manually recalculating dates, you can use PROC CPM to calculate dates for project activities based on an initial starting date, activity durations, and which tasks are identified as successors to others. For an example, see Calculating a Schedule Based on Completion of Predecessor Tasks .


Simple Summary Calendar
Simple Summary Calendar shows a simple summary calendar that displays the number of meals served daily in a hospital cafeteria:

options nodate pageno=1 linesize=132 pagesize=60;

proc calendar data=meals;
   start date;
   sum brkfst lunch dinner;
   mean brkfst lunch dinner;
run;

In a summary calendar, each piece of information for a given day is the value of a variable for that day. The variables can be either numeric or character, and you can format them as necessary. You can use the SUM and MEAN options to calculate sums and means for any numeric variables. These statistics appear in a box below the calendar, as shown in Simple Summary Calendar . The data set shown in this calendar is created in Summary Calendar with MEAN Values By Observation .

Simple Summary Calendar
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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