Solved

Checking for a date > 05/01/2013 in SAS when date in format DATETIME22.3

Posted on 2013-05-14
1
804 Views
Last Modified: 2013-05-15
How do I check a date in SAS in a Data Step when the date is in the format DATETIME22.3 for a date >= 05/01/2013?

The variable is called DateA
0
Comment
Question by:morinia
1 Comment
 
LVL 11

Accepted Solution

by:
theartfuldazzler earned 250 total points
ID: 39167156
Hi

Use DATEPART function:

DATA Test;
 set Test;
   WHERE DATEPART(DATEA) >= '01MAY2013"D;
RUN;
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Data quality checks 2 73
postgres queries -- need opinions 1 72
t-sql sp_addlinkedserver possible risks 3 71
Question about DB Schema 27 56
In today’s complex data management environments, it is not unusual for UNIX servers to be dedicated to a particular department, purpose, or database.  As a result, a SAS® data analyst often works with multiple servers, each with its own data storage…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question