BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DR_Majeti
Quartz | Level 8

Hi every one ,

I have a xls file, but I have to do it without proc import procedure and DDE triplet.

I have to use only "infile and data step"

please help.... .

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Options will depend on version of SAS and modules.

One option is to save the xls as CSV and read the text file.

If you can't use proc import because you don't have the Access to PC Files module you could use import on the resultant CSV file. Especially as the log will show the data step used to read the set. The code can be copied or recalled and edited to allow more control.

View solution in original post

4 REPLIES 4
AncaTilea
Pyrite | Level 9

How about this?

LIBNAME foo excel "your_path\your_excel.xlsx' ;   

data step;

    set foo.'Sheet1$'n;

run;

Would this work?

Anca.

DR_Majeti
Quartz | Level 8

Hi Anca..

I will let you know it .. i don't have SAS @ my home..

thank you.

DR_Majeti
Quartz | Level 8

Hi,

Thank you for you both.. the suggestion helped to gain knowledge. but, as of software issue i couldn't make Anca's procedure.

Thank you Again.

--

Durga.

ballardw
Super User

Options will depend on version of SAS and modules.

One option is to save the xls as CSV and read the text file.

If you can't use proc import because you don't have the Access to PC Files module you could use import on the resultant CSV file. Especially as the log will show the data step used to read the set. The code can be copied or recalled and edited to allow more control.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1269 views
  • 0 likes
  • 3 in conversation