There are 200 observations in a dataset, i want to pull out
the observation no's 100, 150,180,190 by using Proc SQL? How
you can get it?
Answer Posted / limnesh
Proc Sql;
Select *,monotonic ()as c from <datasetname>
group by a having c in (100,150,180,190);
quit;
| Is This Answer Correct ? | 20 Yes | 5 No |
Post New Answer View All Answers
What function CATX syntax does?
how does sas handle missing values in assignment statements? : Sas programming
Which date function advances a date, time or datetime value by a given interval?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
How can you create a macro variable with in data step? : sas-macro
What is the work of tranwrd function?
Explain why double trailing @@ is used in input statement?
What areas of SAS are you most interested in?
Enlist the functions performed by sas.
What is the maximum and minimum length of macro variable
Explain append procedure?
what are the types of interactive display types? : Sas-bi
Describe the ways in which you can create macro variables?
What is maximum storage capability of SAS?
Explain how merging helps to combine data sets.