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

Did you used proc test? when?

1573


What is the basic syntax style in SAS?

612


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

1161


Explain proc univariate?

604


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

610






Mention the validation tools used in SAS?

654


Have you ever used the SAS Debugger?

1203


Tell me more about the parameters in macro? : sas-macro

584


what is metadata? : Sas-bi

597


explain the difference between proc means and proc summary?

668


What are the difference between ceil and floor functions in sas?

704


Explain how you can debug and test your SAS program?

563


Name any two sas spawners? : sas-grid-administration

556


describe about metadata object? : Sas-di

620


what are validation tools that are used in sas? : Sas-administrator

590