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

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -