Create the activities data set and identify separate calendars. ALLACTY2 contains both personal and business activities for a bank president. The _CAL_ variable identifies which calendar an event belongs to.
data allacty2;
  input date:date7. happen $ 10-34 who $ 35-47 _CAL_ $ long;
  datalines;
01JUL96  Dist. Mtg.               All          CAL1   1
02JUL96  Mgrs. Meeting            District 6   CAL1   2
03JUL96  Interview                JW           CAL1   1
05JUL96  VIP Banquet              JW           CAL1   1
06JUL96  Beach trip               family       CAL2   2
08JUL96  Sales Drive              District 6   CAL1   5
08JUL96  Trade Show               Knox         CAL1   3
09JUL96  Orthodontist             Meagan       CAL2   1
11JUL96  Mgrs. Meeting            District 7   CAL1   2
11JUL96  Planning Council         Group II     CAL1   1
12JUL96  Seminar                  White        CAL1   1
14JUL96  Co. Picnic               All          CAL1   1
14JUL96  Business trip            Fred         CAL2   2
15JUL96  Sales Drive              District 7   CAL1   5
16JUL96  Dentist                  JW           CAL1   1
17JUL96  Bank Meeting             1st Natl     CAL1   1
17JUL96  Real estate agent        Family       CAL2   1
18JUL96  NewsLetter Deadline      All          CAL1   1
18JUL96  Planning Council         Group III    CAL1   1
19JUL96  Seminar                  White        CAL1   1
22JUL96  Inventors Show           Melvin       CAL1   3
24JUL96  Birthday                 Mary         CAL1   1
25JUL96  Planning Council         Group IV     CAL1   1
25JUL96  Close Sale               WYGIX Co.    CAL1   2
27JUL96  Ballgame                 Family       CAL2   1
;