Still no luck, table created with 0 observations and 7 rows 311 proc sort data=work.a; 312 by order_date Cust_id;run; NOTE: There were 108 observations read from the data set WORK.A. NOTE: The data set WORK.A has 108 observations and 7 variables. NOTE: PROCEDURE SORT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds 313 proc sql; 314 create table S as 315 select a.*, b.order_date as prior_order_date 316 from work.a as a, work.a as b 317 where a.Cust_id = b.Cust_id 318 and a.prod_id = b.prod_id 319 and b.order_date in (2014,2015) 320 and a.order_date in (2016,2017); NOTE: Table WORK.S created, with 0 rows and 8 columns. 321 quit; NOTE: PROCEDURE SQL used (Total process time): real time 0.00 seconds cpu time 0.00 seconds
... View more