Date: Tue, 27 Aug 2002 15:57:23 -0400
Reply-To: "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
Subject: Re: a simple question
Content-Type: text/plain; charset="iso-8859-1"
No need for if/thens, as long as you don't care about rcvdate being length
30 instead of 10. Just read it as one variable to start.
data test;
input rcvdate $30.;
cards;
04/03/2002
04/08/2002
05/02/2002
08/03/2002
08/23/2002
08/28/2002
;
run;
-Brad
> Date: Tue, 27 Aug 2002 09:42:48 -0700
> From: miranda <mixiao@UCLA.EDU>
> Subject: a simple question
>
> Hi All,
> I would like combine these 2 variables and only leave
> variabe rcvdate.
> How could I do that?
>
>
> My data step shows as below:
> data test;
> input rcvdate $10. DmcRcvdate $20.;
> cards;
> 04/03/2002
> 04/08/2002
> 05/02/2002
>
>
> 08/03/2002
> 08/23/2002
> 08/28/2002
> ;
> run;
>
> The final data set should look like :
>
> rcvdate
> 04/03/2002
> 04/08/2002
> 05/02/2002
>
>
> 08/03/2002
> 08/23/2002
> 08/28/2002
|