Date: Thu, 27 Dec 2007 12:37:14 -0800
Reply-To: brian.kreeger@GMAIL.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: brian.kreeger@GMAIL.COM
Organization: http://groups.google.com
Subject: Re: Extracting date in required form from macro variable and
concatinating with string
Content-Type: text/plain; charset=ISO-8859-1
> how do i compress this so i can get output as
>
> abc20071221.csv
>
> Thanks,
> Raghu
Use the compress function:
%let name =
compress(%sysfunc(putn(%sysfunc(inputn(&x,anydtdte21.)),yymmddN8.)).csv);
It removes any blanks.
|