In the SAS Data step what is the difference between the
subsetting done by Where and subsetting done by If?

Answer Posted / s.s.suresh

WHERE Statement can be only be used with variables in the
existing dataset where as IF statement can also be used raw
data as well

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the statements in proc sql?

598


What are SAS/ACCESS and SAS/CONNECT?

636


what is the difference between infile and input? : Sas-administrator

615


What are the difference between sas functions and procedures?

647


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

621






data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

1803


What does proc print, and proc contents are used for?

613


hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

1690


what is sas enterprise intelligence architecture? : Sas-bi

548


Differentiate input and infile.

602


What is slibref?

748


What are the difficulties u faced while doing vital signs table or dataset?

1939


What is the difference between match merge and one to one merge?

695


Explain proc sort?

673


what is the use of proc sql? : Sas programming

602