sql - Subtract one column from another in SAS data step -


i have below code subtract column "eligible in store" column "total count" in sas. reason, not working. i'm new sas, seems should extremely straight forward. i've tried pretty can think of though, appreciated.

data additional_upcs (drop=_freq_); set additional_upcs;  ut_id;  retain total_count;  if ut_id = 19 total_count = _freq_; else total_count = total_count;  new_upcs = (total_count-eligible_in_store);    run; 


Comments

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -