Help using Base SAS procedures

How to use yearcutoff option in data having three centuries ?

Reply
Occasional Contributor
Posts: 9

How to use yearcutoff option in data having three centuries ?

Hi

Suppose I have three centuries  i.e. 1800,1900 and 2000 in the data having 2-digit format date. How to read these  with the help of yearcutoff ?

Super User
Posts: 11,343

Re: How to use yearcutoff option in data having three centuries ?

Posted in reply to Aquarian27

Is this data all in one file/data set? If so, how do you know which century the date represents? The YEARCUTOFF option pretty much is set up only for distinguishing 19XX to 1999 from 20XX-2099 years. For 1800 you're going to have to provide the century somehow and then use an appropriate date conversion function.

Ask a Question
Discussion stats
  • 1 reply
  • 128 views
  • 3 likes
  • 2 in conversation