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

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -