I need to extract this data from excel file. the thing is, in the below variables the date variable consists of both numeric and charater data type. while iam reading into sas ,i am getting only few records. i should get all records into sas data set.
could you please help me ?
the below attchement consists of sample of my data.
thanks in advance
Date | particulars | chequeNO/OrderNo |
23/06/06 | received | 234554 |
11/8/2006 | received | 798242 |
12/8/2006 | received | 985795 |
20/08/06 | received | 298489 |
26/08/06 | received | 988323 |
28/08/06 | received | 248927 |
31/08/06 | received | 598332 |
5/9/2006 | received | 284729 |
3/9/2006 | received | 287492 |
15/9/2006 | received | 279872 |
1/9/2006 | received | 258202 |
2/9/2006 | received | 928590 |
1/11/2006 | received | 209842 |
5/12/2006 | received | 595972 |
5/12/2006 | received | 902892 |
20/12/06 | received | 298297 |
i've tried these two codes. but instead of using libname statement, i should pull out the data using proc import or else proc sql.
proc sql;
connect to excel(path="C:\Users\siddiq\Desktop\Book1.xls");
create table tab as
select * from connection to excel
(
select * from [sheet1$]
);
disconnect from excel;
quit;
proc import datafile="C:\Users\siddiq\Desktop\book1.xls"
out=dd
dbms=excel
replace;
run;
OT Because I present a SAS, WPS and R Solution
If interested see
https://listserv.uga.edu/cgi-bin/wa?A2=SAS-L;47be38ca.1607c
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.