Previous Page | Next Page

Working with Dates in the SAS System

Input File and SAS Data Set for Examples

In the travel industry, some of the most important data about a tour includes dates, when the tour leaves and returns, when payments are due, when refunds are allowed, and so on. Tradewinds Travel has data that contains dates of past and upcoming popular tours as well as the number of nights spent on the tour. The raw data is stored in an external file that looks like this:

1            2          3 
Japan       13may2000  8
Greece      17oct99   12
New Zealand 03feb2001 16
Brazil      28feb2001  8
Venezuela   10nov00    9
Italy       25apr2001  8
USSR        03jun1997 14
Switzerland 14jan2001  9
Australia   24oct98   12
Ireland     27aug2000  7

The numbered fields represent

[1] the name of the country toured

[2] the departure date

[3] the number of nights on the tour

Previous Page | Next Page | Top of Page