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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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