| Date: | Thu, 15 Aug 1996 14:45:00 -0500 |
| Reply-To: | Robert Schechter <robert_schechter@MERCK.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU> |
| From: | Robert Schechter <robert_schechter@MERCK.COM> |
| Subject: | Re: Putting leading spaces |
|
Hays,
2 data _null_;
3 x= ' X';
4 y = 'Y ';
5 put x;
6 put y;
7 put x $char2.;
8 run;
X
Y
X
NOTE: The DATA statement used 2.14 seconds.
Robert_Schechter@MERCK.COM
Maxim Group SAS Consultant
****************************************************************************
********************************
Disclaimer:
The contents of this message express only the sender's opinion. This message
does not necessarily reflect the policy of Merck & Co., Inc. All
responsibility for the statements made in this posting reside solely and
completely with me.
****************************************************************************
********************************
----------
From: Hays McLean
To: schechte; Multiple recipients of list SAS-L
Subject: Putting leading spaces
Date: Thursday, August 15, 1996 1:34PM
How can I make a put statement put leading spaces in a character variable?
The following is what I get now:
data; x= ' x'; y='y';
put x;
put y;
run;
output:
x
y
What I want is:
x
y
--Hays McLean
|