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
Mention some common errors that are usually committed in sas programming.
How does the internal authentication work in sas? : sas-grid-administration
is data integration and etl programming is same? : Sas-di
What are the difference between the sas data step and sas procs?
explain the concepts and capabilities of business object? : Sas-bi
What is the difference between the proc sql and data step?
What is a macro routine?
How do you test for missing values?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
Differentiate between proc means and proc summary.
how can you create zero observation dataset? : Sas programming
What is a pdv and what are its functions?
Describe the ways in which you can create macro variables?
How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
what is sas metadata repository? : Sas-bi