🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 09-16-2019 10:54 PM
(3148 views)
How to find even numbers in proc sql
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You can find if a number is even in SQL just like anywhere else in SAS: using the MOD function
title "Even aged students";
proc sql;
select *
from sashelp.class
where mod(age, 2) = 0;
quit;
PG
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You can find if a number is even in SQL just like anywhere else in SAS: using the MOD function
title "Even aged students";
proc sql;
select *
from sashelp.class
where mod(age, 2) = 0;
quit;
PG
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you very much