I have a dataset A that looks like:
| Account# |
Userno |
| 123 |
1 |
| 456 |
2 |
I have a dataset B that looks like:
There are thousands of accounts and around 15 users total. Right now I have a datastep where I assign accounts to users in a loop like so:
data example;
set work.A;
p = 1 + mod(_n_-1,nobs);
set work.B point=p nobs=nobs;
run;
What I need is something that does not function with the 'point' function in SAS I think...
I want to add a conditional that would be like this:
data example;
set work.A;
p = 1 + mod(_n_-1,nobs);
set work.B where ((userno in (1,2,3) and flag = 1) OR (userno in (4,5,6) and flag in (1,0)));
point=p nobs=nobs;
run;
As far as I know, you can't add a 'WHERE' when you use the POINT function in the SET option. Does anyone have a recommendation on how to accomplish this another way, or if I'm not being explicit enough, please let me know.
Thanks,