Date: Mon, 24 Dec 2007 05:18:23 -0800
Reply-To: "raghur6@gmail.com" <raghur6@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "raghur6@gmail.com" <raghur6@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
On Dec 22, 9:14 pm, Patrick <patrick.mat...@gmx.ch> wrote:
> Hi Raghu
> Are you looking for something like this?
> Patrick
>
> %let x=2007-12-20 00:00:0;
> %let y=abc
> %sysfunc(putn(%sysfunc(inputn(&x,anydtdte21.)),yymmddN8.)).csv;
> %put &y;
Hi Patrick,
thanks yeh, I am looking for that kind of out put
if i use put statement the out put is like
abc 20071221.csv
how do i compress this so i can get output as
abc20071221.csv
Thanks,
Raghu
|