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 (August 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 14 Aug 2001 21:48:00 +0100
Reply-To:   Peter Crawford <peter.crawford@DB.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Peter Crawford <peter.crawford@DB.COM>
Subject:   Antwort: Re: how can I write ASCII to an External File?
Comments:   To: shiling zhang <shiling99@YAHOO.COM>
Content-type:   text/plain; charset=iso-8859-1

with the introduction of v8 feature (DSD) for the file statement, this solution may be reduced, at least for the data part.

* If you are confident that none of your character variables could start with an unbalanced " mark, then the _character_ part of the format statement is unnecessary ;

data _null_; file 'myascii.txt' dsd; set t1; put (_all_) ( : ) ; format _numeric_ best.; run;

Nice to get away from that ( +(-1) ) !!

Regards Peter Carwford

Datum: 14.08.2001 18:01 An: SAS-L@LISTSERV.UGA.EDU

Antwort an: shiling zhang <shiling99@YAHOO.COM>

Betreff: Re: how can I write ASCII to an External File? Nachrichtentext:

data t1; retain x y z 'a' a b c 1; run;

*output it to a text file with ',' as delimiter. data _null_; file 'myascii.txt' ; set t1; put (_all_) (+(-1) ',') @1 ' '; format _character_ $quote200. _numeric_ best.; run;

You can use the output of proc content as a document for this text file.

Qingqing Xu <xu@aitken.uchicago.edu> wrote in message news:<Pine.GSO.4.05.10108140205210.10162-100000@aitken.uchicago.edu>... > I have a SAS dataset consisting of 3000 observations and 400 variables. I > want to transfer it to Splus. The only way I know is to write the SAS data > into a ASCII file, which is readable to Splus. But how? How can I generate > the ASCII file with all variable names kept? Thanks in advance! > > Qingqing

--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


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