Using Dates and Times in Calculations
Suppose you work in the billing department of a small community hospital. It is your job to create a SAS data set from the raw data file that is referenced by the fileref Aprdata. A portion of the raw data file below shows the following patient data:
date checked in
date checked out
daily room rate
Figure 19.1 Raw Data File Aprdata
The data set that you create must also include variable values that represent how many days each person stayed in the hospital, the total room charges, and the total of all expenses that each patient incurred. To create the ...
Get SAS Certification Prep Guide, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.