Hi
I m practicing SAS prog 2 Lesson1 Chapter 5 Practice 11 Level 2 (1.5.11 level 2)
Can anyone explain the following :
WARNING: The variable ShipDays in the DROP, KEEP, or RENAME list has never been referenced.
I m getting this msg after running the below code .
data instore
delivery (keep = ShipDays);
keep order_id customer_id order_date;
set orion.orders;
where order_type=1;
ShipDays = Delivery_date-Order_date;
if ShipDays = 0 then output instore ;
else if ShipDays gt 0 then output delivery;
run;
The solution is using the keep stat. for both the dataset and its still doing giving the same warning.
The results dont match either.
please send code or screenshot if differs from above code.
Thanks
Nisarg
(batch4)