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

Answer Posted / k

There is difference between how SAS handles IF and WHERE
conditions. The 'WHERE' condition is applied on data before
they enter Program Data Vector (PDV) and in case of 'IF' it
is applied after data comes out from PDV. Now, if you have
created a variable in the same data step using
Where : the created variable will not be applied condition.
IF: the created variable will be subjected to the condition
applied.

Is This Answer Correct ?    19 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is PROC in SAS?

614


how to change the execute of macro

1688


Briefly explain input and put function?

642


What is the length assigned to the target variable by the scan function?

686


What is the basic structure of the SAS base program?

696






Differentiate between sas functions and sas procedures.

651


describe how to adjust the performance of data integrator? : Sas-di

574


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

555


what techniques and/or procs do you use for tables? : Sas programming

584


Mention the validation tools used in SAS?

662


how can you put a "trace" in your program? : Sas programming

583


For what purpose would you use the RETAIN statement?

1057


how do you debug and test your sas programs? : Sas programming

571


What is a macro routine?

2110


What areas of SAS are you most interested in?

1074