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
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
*/
/*****************************************************************************
**/
|