Hello all, I have a problem, I hope I can get some help over here. I am tring to assign numbers 0,1, 2, 4, 5, 6, 7 (pls note here values are without 3) to a variable y if this condition is fullfiled if x="8000" and a="0" and y=" ". This schould take place in a data step I tried the following code but it tends to output y= " " . I don't know if my if else do condition is not working. I will be glad for any help data want;
set have;
if x= "8000" and a="0" and y= " " then
do;
y=rand("integer" 0, 7);
output;
end;
run; I know this code will include the value 3 which I don't want, is there any way I can exempt the value 3? Anyway the code is not working properly may some can help. Thanks
... View more