daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Dec 15th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. proc sort data=work.orders_fin_tot_qtr;
  2.     by workqtr;
  3. run;
  4. data work.orders_fin_tot_qtr;
  5.    set work.orders_fin_tot_qtr;
  6.  
  7.     array QtrSales{4} quarter1-quarter4 ;
  8.     do i = 1 by 1 until (last.order_id);
  9.     if workqtr=i then QtrSales{i}=totalsales;
  10.     end;
  11.     drop totalsales totalprofit _TYPE_  _FREQ_;
  12. run;
  13. proc print data=work.orders_fin_tot_qtr;
  14. run;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top