Question

How to convert excel file into SAS 9.4

How to convert excel file into SAS 9.4

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Using the below code, we can convert an excel file into SAS 9.4 dataset:

In the below code, make the necessary replacements for:

  • datafile = Specify the location and actual excel file name in your system
  • The output data has been named as testdata in the WORK library of SAS. You can change it by specifying the dataset name in out= option in below code.
  • Specify the actual excel worksheet name that has the data and need to be imported. I have used "Sheet1" for importing

proc import datafile="E:\file_location\file_name.xlsx" dbms=XLSX out=testdata replace;
   sheet="Sheet1";
run;

Add a comment
Know the answer?
Add Answer to:
How to convert excel file into SAS 9.4
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT