Depends if number is stored as SAS date with a format on it. If it's stored as a character string then: data want ; length day month $2 year $4 ; set have ; day = scan(date,2,'/') ; month = scan(date,1,'/') ; year = scan(date,3,'/') ; run ; If as a date then: data want ; set have ; day = day(date) ; month = month(date) ; year = year(date) ; run ; Similarly: data want ; set have ; hour = hour(time) ; minute = minute(time) ; run ; data want ; length hour minute $2 ; set have ; hour = scan(time,1,':') ; minute = scan(time,2,':') ; run ;
... View more