I am using 64-bit SAS 9.4 to import a file from 32-bit Excel. Many of my Excel columns contain both dates and lists of dates, like this:
SeptemberDatesCol
9/13 & 9/27
9/13 & 9/26
9/01 & 9/10 & 9/21
9/23
9/30
9/30
9/28
I'm not the owner of the file and it is updated regularly, so all major manipulation and formatting needs to occur in SAS. After import, I'm able to change it into a normal list of one date per row, but the import itself is not importing the dates correctly. My import code:
PROC IMPORT OUT=Raw_Import DATAFILE= "J:\filename.xlsx" DBMS=XLSX REPLACE;
SHEET="Sheetname";
GETNAMES=YES;
RUN;
SeptemberDatesCol imports as a character variable (as desired), except that for some of the rows with a single date, the date is imported with Excel's raw unformatted date convention values:
SeptemberDatesCol
9/13 & 9/27
9/13 & 9/26
9/01 & 9/10 & 9/21
9/23
42643
42643
42641
What can I do differently to get the column to import properly? When I use DBMS=EXCELCS, I obtain a 'failed to connect to the server' error. DBMS=EXCEL does not function given my work's software setup (64-bit SAS 9.4 with 32-bit Excel). Thank you in advance for any advice you can provide.