My time variable in my ILD_1bisx data set is the variable with all these numeric values 39888.529167 39888.529861 39888.530556 When I try this code: data ILD1_date (rename=(datetime=time)); set ILD_1bisx; input string $20.; number=input(string,32.); date=number + '30DEC1899'd; datetime=dhms(date,0,0,0); format date date9. datetime datetime19.; drop time; run; Or this: data ILD1_date; set ILD_1bisx; input string $20.; number=input(string,32.); date=number + '30DEC1899'd; datetime=dhms(date,0,0,0); format date date9. datetime datetime19.; run; I always receive this answer in my log: ERROR: No DATALINES or INFILE statement. So what I want to become is the conversion of my 'time' variable (with these kind of values 39888.529167) into the datetime variable which was explained by Tom. It worked using his code with the proc print statement, but I want to insert the new values of the datetime variable in my (new) data set ILD1_date. So where do I put the variable 'time' in his code (so SAS reads the value from the data set, not using the 'cards')?
... View more