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 dominic

Before saying answer is not correct, please try this
Data f;
do i=1 to 200;
output;
end;
run;

Proc Sql;
Select *,monotonic ()as c from f
group by i having c in (100,150,180,190);
quit;

Proc print;
run;

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

735


How many data types are there in SAS?

640


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

560


What is the order of application for output data set options, input data set options and SAS statements?

1087


what is null hypothesis? why do you consider that?

2425






explain about sas business intelligence? : Sas-bi

600


what are the categories that sas informats are used to the place the data? : Sas-administrator

621


How would you determine the number of missing or nonmissing values in computations?

652


What do the mod and int function do? : Sas programming

586


why a stop statement is needed for the point= option on a set statement?

631


What is the basic structure of a sas program?

604


how to change the execute of macro

1684


What are the data types in sas?

615


Mention the category in which sas informats are placed?

635


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

948