Help using Base SAS procedures

reading in a text file and exporting it to an excel

Reply
Super Contributor
Super Contributor
Posts: 444

reading in a text file and exporting it to an excel

I need to read in one variable from an external text file and exporting that variable to an excel. Can i do it directly without creating a dataset first?

Super User
Posts: 19,815

Re: reading in a text file and exporting it to an excel

Not easily enough to make it worthwhile.

Super User
Posts: 11,343

Re: reading in a text file and exporting it to an excel

Depending on the structure of the text file you might be easier to do this directly in Excel using the text import wizard and setting the "do not import" for the columns you don't want. This will be relatively easy if the text is either fixed column or has a consistent delimiter around the variable you want.

Ask a Question
Discussion stats
  • 2 replies
  • 194 views
  • 6 likes
  • 3 in conversation