BookmarkSubscribeRSS Feed
thanikondharish
Fluorite | Level 6

I have one file that is portion document file  like TXT file

How to import or take that file into sas

4 REPLIES 4
thanikondharish
Fluorite | Level 6
Please find attachment I have some files . How to take into sas as datasets
ballardw
Super User

@thanikondharish wrote:

I have one file that is portion document file  like TXT file

How to import or take that file into sas


Do you have any document that describes the content of the file? Such as is it delimited and what character delimits variables (tab and comma are common). Or is fixed column input, where a value starts in a specified column number?

Do you know if there are date, time or date time values and what layout they will have?

 

If such a document exists then likely it will be moderately easy to write a data step to read such file layouts.

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
  • 4 replies
  • 826 views
  • 0 likes
  • 3 in conversation