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

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -