Help using Base SAS procedures

Working with date informat yymmdd8.

Reply
Occasional Contributor
Posts: 13

Working with date informat yymmdd8.

I am using a SAS dataset which has a date variable with:

Format: MMDDYY10.

Informat: YYMMDD8.

I need to select cases between 2 particular dates. I have tried reformatting the dates, using the GE LE functions with 'yymmdd'D and a lot of other techniques. But nothing seems to work. Please help.

Super User
Posts: 10,550

Re: Working with date informat yymmdd8.

All date literals are in the form ddMonYY or ddMonYYYY. '13JUN2014'D for example. The format of the variable has nothing to do with selecting values.

Occasional Contributor
Posts: 13

Re: Working with date informat yymmdd8.

Thank you. I was able to solve the problem. I appreciate your help.

Super Contributor
Posts: 305

Re: Working with date informat yymmdd8.

Hello,

I will also add that there is no date variable in SAS. You have either numeric (which can be formatted as dates) or character variables.

Ask a Question
Discussion stats
  • 3 replies
  • 297 views
  • 3 likes
  • 3 in conversation