BookmarkSubscribeRSS Feed
QLi
Fluorite | Level 6 QLi
Fluorite | Level 6
I use Enterprise Guide 4.1. I want to read Exel to SAS. But I don't have DDE and SAS Access for Pc files.
So I cann't use PROC IMPORT or PROC ACCESS. Anyone know how to use INFILE statement to read?


Thanks in advance.

Qli
4 REPLIES 4
Cynthia_sas
SAS Super FREQ
Hi:
This blog has some useful information about EG and importing Excel files:
http://blogs.sas.com/sasdummy/index.php?/archives/258-Behind-the-scenes-importing-Excel-files-using-...

You also might find more help if you posted this question in the SAS Enterprise Guide forum:
http://support.sas.com/forums/forum.jspa?forumID=10

cynthia
SASKiwi
PROC Star
You can't read native Excel spreadsheets with INFILE. However if you save your Excel spreadsheets as a delimited file, for example CSV (comma delimited) you can then PROC IMPORT these files using DBMS = CSV or DLM, or an INFILE using the DLM option.
stateworker
Fluorite | Level 6
Have to agree with SASKiwi - save your Excel spreadsheet as a delimited file (we prefer tab delimited, but obviously it will depend on the contents of your data as to what delimiter you choose). This is one example of when knowing what's available as a component of SAS but not having that feature makes one covetous 🙂
QLi
Fluorite | Level 6 QLi
Fluorite | Level 6
Thanks all,

I worked it out. Since DBMS type EXCEL not valid for import for Enterprise Guide, after changed to CSV file and worked well.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1277 views
  • 1 like
  • 4 in conversation