![]() Chapter Contents |
![]() Previous |
![]() Next |
| The CALENDAR Procedure |
| Procedure features: |
|
| Producing Different Output for Multiple Calendars |
| To print . . . | Sort the activities data set by . . . | And set OUTPUT= to | See Example | |
|---|---|---|---|---|
| Separate pages for each calendar | calendar id and starting date | SEPARATE | 3, 8 |
|
| All activities on the same page and identify each calendar | starting date | COMBINE | 4, 2 | |
| All activities on the same page and NOT identify each calendar | starting date | MIX | 4 | |
| Program |
| | libname well 'SAS-data-library'; |
| | data well.hol; input date date. holiday $ 11-25 _cal_ $; datalines; 09JUL96 Vacation CAL2 04JUL96 Independence CAL1 ; |
| | data well.wor; input halfday time5.; datalines; 08:00 12:00 ; |
| | proc sort data=well.act; by _cal_ date; run; |
| | options nodate pageno=1 linesize=132 pagesize=60; |
| | proc calendar data=well.act
holidata=well.hol
caledata=well.cal
workdata=well.wor
datetime; |
| | calid _cal_ / output=separate; |
| | start date; dur dur; |
| | holistart date; holivar holiday; |
| | outstart Monday; outfin Saturday; title1 'Well Drilling Work Schedule: Separate Calendars'; format cost dollar9.2; run; |
| Output |
Separate Output for Multiple Schedule Calendars
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.