in data set200 observation how to take 110,150,170 using sql procedure?
Answer Posted / ashish
Hey , your anwer is almost right but the only correction is
we derived the count variable by using monotonic() function
so that we have to use "calculated count" in where
statement or we can also use HAVING in palce of WHERE..
PROC SQL;
CREATE TABLE TEST AS SELECT
*,
MONOTONIC() AS COUNT
FROM TEST1
HAVING COUNT IN (110,150,170);
QUIT;
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What are the special input delimiters used in SAS?
What would be the value of month at the end of data step execution and how many observations would be there?
Difference between nodup and nodupkey options?
how can you import .csv file in to sas? : Sas programming
What was the last computer book you purchased? Why?
what is sas enterprise intelligence architecture? : Sas-bi
How sas treats the dsd delimiters?
How do you control the number of observations and/or variables read or written?
How can you create a macro variable with in data step? : sas-macro
Mention few capabilities of sas framework.
What is the maximum length of the macro variable?
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
In SAS explain which statement does not perform automatic conversions in comparisons?
what are sas/access and sas/connect? : Sas programming
explain the proc in sas? : Sas-administrator