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:         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
Comments: To: sas-l@uga.edu
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.


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