Date: Mon, 10 Feb 1997 15:03:13 -0800
Reply-To: Yen Wei <Wei.Yen@OFM.WA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Yen Wei <Wei.Yen@OFM.WA.GOV>
Subject: Re: Help: Basic PUT statement
Content-Type: text/plain; charset="us-ascii"
Lei,
At the end of each variable name in the put statement, add "+(-1)".
That should take care of the spaces. So your statement should read:
PUT "*" VAR1 +(-1) "*,* *,*" VAR2 +(-1) "*,*" VAR3 +(-1) "*,*" .....
VAR100 +(-1) "*,* *";
HTH.
Wei Yen
State of Washington
Office of Financial Management
----------
From: Lei Rao[SMTP:Lei.Rao@PAREXEL.COM]
Sent: Monday, February 10, 1997 2:36 PM
To: Multiple recipients of list SAS-L
Subject: Help: Basic PUT statement
Dear SAS-Ler,
I need to create an ascii file from a sas dataset. The code I'm
using
is:
DATA _NULL_;
SET A;
FILE 'C:\OUT.DAT' NOPRINT LS=1024 LRECL=1024;
PUT "*" VAR1 "*,* *,*" VAR2 "*,*" VAR3 "*,*" ..... VAR100 "*,* *";
RUN;
The problem is I'm getting a space after each varible. Is there
any
option I can use to get rid of that space?
TIA,
Lei
|