Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


How to Output a Data Set to a Text File

To export data into a flat, text file, use SAS program like this:

        data _null_;
            set <your data set>;
            file '<your output file>' notitles noprint;
            put var1 var2 var3 ... varn;
        run;

where

        <your data set> is the existing SAS data set
        <your output file> is the output file you want to create
        var1 - varn are the names of your variables.

Note that you do not type the angle brackets (<>), but you do need the
quotation marks around the file name.

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.