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

Hi folks,

 

How do I use infile statement to bring in data from a worksheet please?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

@sks521 wrote:

Hi folks,

 

How do I use infile statement to bring in data from a worksheet please?

 

Thanks


Actually INFILE is not intended to work with spreadsheets. It is intended to read text files either fixed column, delimited, named input or some combination thereof.

 

If you want control over how data is read then export your worksheet (File > SaveAs) to a CSV file and use an infile statement pointing to that file to read.

View solution in original post

1 REPLY 1
ballardw
Super User

@sks521 wrote:

Hi folks,

 

How do I use infile statement to bring in data from a worksheet please?

 

Thanks


Actually INFILE is not intended to work with spreadsheets. It is intended to read text files either fixed column, delimited, named input or some combination thereof.

 

If you want control over how data is read then export your worksheet (File > SaveAs) to a CSV file and use an infile statement pointing to that file to read.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1732 views
  • 1 like
  • 2 in conversation