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


Please Help Members By Posting Answers For Below Questions

Mention few capabilities of sas framework.

696


What are the special input delimiters used in SAS?

658


How you can read the variables that you need?

657


Describe a time when you were really stuck on a problem and how you solved it?

2086


Describe the ways in which you can create macro variables? : sas-macro

580






What is SAS informats?

639


What is the difference between using drop = data set option in data statement and set statement?

642


Explain the difference between nodup and nodupkey options?

613


how sas deals with business intelligence? : Sas-bi

586


what are the scrubbing procedures in sas? : Sas programming

839


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

1922


What are the limitations for memory allocation for SAS variables

934


What are SAS/ACCESS and SAS/CONNECT?

636


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

571


what is the effect of the options statement errors=1? : Sas programming

600