I've been using this data step to try and get the date from a datetime format (SELLSTARTDATE): data sorted_table (keep= productid color SELLSTARTDATE); set sorted; SELLSTART=datepart(SELLSTARTDATE); format SELLSTART date9.; run; It does not create a SELLSTART column or format it in date9. Thanks
... View more