LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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


Back to: Top of message | Previous page | Main SAS-L page