proc import datafile="C:\CANCER\MEANADH\BC.xlsx" out=cancer.BC DBMS= xlsx REPLACE; sheet="sheet_1"; getnames=yes; run; This is how the data looks in excel DOB 3/21/1965 8/9/1962 6/20/1953 2/4/1962 1/8/1965
... View more
Here is the log proc print data=CANCER.bc(obs=10); var dob; format dob mmddyy10.; ERROR: You are trying to use the numeric format MMDDYY with the character variable DOB in data set CANCER.BC. run; NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE PRINT used (Total process time): real time 0.00 seconds cpu time 0.00 seconds
... View more
This is how DOB looks like DATA CANCER.corr_DOS1; SET CANCER.BC; dob1= input (dob, yymmdd6.); format dob1 MMDDYY10.; RUN; I didn't get any output. It is missing
... View more
Hello, I am a new user of SAS. I have a variable named Date of Birth. But in SAS the DOB appears as 23822, 22867, 19530, and so on. It is a character variable with $8. I would like to convert this to mmddyy10. I have tried data new; set have; dob1 =input(dob, $8.); format dob $8.; run; Thanks for the help
... View more