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 is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
: and & modifiers.
Describe what are the different levels of administrative users in sas? : sas-grid-administration
what is star schema? : Sas-di
What are the differences between proc means and proc summary?
What is factor analysis?
What is data _null_?
How are numeric and character missing values represented internally?
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
Describe 5 ways to do a “table lookup” in SAS?
how could you generate test data with no input data? : Sas programming
For what purposes have you used sas macros? : sas-macro
What are symget and symput? : sas-macro
How can sas program be validated?
what techniques and/or procs do you use for tables? : Sas programming