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 (October 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 9 Oct 1997 14:14:14 PDT
Reply-To:     Melvin Klassen <KLASSEN@UVVM.UVIC.CA>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Melvin Klassen <KLASSEN@UVVM.UVIC.CA>
Subject:      Re: Q: creating a comma delimited ASCII file

Tjen-Sien Lim <limt@MARS.STAT.WISC.EDU> writes: >Is there any option in the FILE or PUT statements to create a comma >delimited ASCII file?

Not in the 'FILE' statement in Version 6 of SAS.

However, the 'PUT' statement can be exploited:

DATA _NULL_; X1=123; X2=-45.6; Y=123456789123412341232343; BACK = -1; COMMA = ','; SEMI=';';

PUT X1 +(BACK) COMMA +(BACK) X2 +(BACK) COMMA +(BACK) Y +(BACK) SEMI;

which gives:

123,-45.6,1.2345679E23;


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