What Bala said is exactly correct
We can use IF statement only in the data set along with THEN and DO....
and coming to the WHERE statement we can use it in the dataset and also in the proc step...
to modify the data,....
WHERE statement to filter the data...means if we need to extract particular name or particular details of the person we use WHERE statement.