LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 1997, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 16 May 1997 08:46:15 -0400
Reply-To:     Chris Roper <QLXCAR@AOL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Chris Roper <QLXCAR@AOL.COM>
Subject:      Re: SAS question...conversion to ASCII
Comments: To: teb@acpub.duke.edu

Todd,

You need to run your data through a data step and issue a FILE statement and a PUT statement. Something like this:

DATA _NULL_; SET yourSAS.dataset; FILE 'C:\ASCII\FILENAME\AND\PATH.TXT'; delim = '05'x; <==== Tab delimited PUT var1 delim var2 delim var3 delim var4 etc.; RUN;

This will create and ASCII file that is tab delimited, if you want to use another delimeter, simply replace the value assigned in the delim= statement. Depending on your dataset and your output file requirements you may need to use some of the options available to the FILE statement. You can look them up in the documentation for the FILE statement in the SAS LANGUAGE REFERENCE, v. 6, or on the online help.

Hope this helps,

Chris. /***************************************************************************** **/ /* Christopher A. Roper Rt. 2 Box 224C */ /* Qualex Consulting Services, Inc. Hillsville, Va. 24343 */ /* A SAS Institute Quality Partner USA */ /* QLXCAR@AOL.COM (540) 398 - 3757 */ /* www.qlx.com */ /***************************************************************************** **/


Back to: Top of message | Previous page | Main SAS-L page