LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (May 2010, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 6 May 2010 16:26:08 -0400
Reply-To:   "Fehd, Ronald J. (CDC/OSELS/NCPHI)" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J. (CDC/OSELS/NCPHI)" <rjf2@CDC.GOV>
Subject:   Re: create a WORKSHEET with a space in the sheet name
In-Reply-To:   <201005062013.o46GJHmP027585@malibu.cc.uga.edu>
Content-Type:   text/plain; charset=us-ascii

as with dates that are 'special': '2010-05-06'd add the n==name suffix to the string which says: "don't mess w/this!"

'sheet name with space'n

not sure this will work in sql, tho

Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov

> -----Original Message----- > From: owner-sas-l@listserv.uga.edu [mailto:owner-sas- > l@listserv.uga.edu] On Behalf Of Yu Zhang > Sent: Thursday, May 06, 2010 4:13 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: create a WORKSHEET with a space in the sheet name > > Hello, > > I am trying to write a code to update an EXCEL worksheet in place. the > first > step is to create an empty worksheet and use the name client provided. > > > I need to do this within from SAS. I googled around and found the > SAS/ACCESS > passthrogh facility can be used for my task. > > here is the code > proc sql dquote=ansi feedback; > CONNECT TO EXCEL (PATH="d:\test.xls"); > execute ( > create table `name with space` > (`dsmb date` varchar(8), > pulldate date, > `all` long, > CLP long, > Placebo long > ) > ) by excel; > quit; > > the worksheet was created successfully expcept the space in the > sheetname > changed to '_' by SAS. > > Is there any way to prevent this happen? Note the back tick was used to > for > the sheetname [name with space]. it is not the single quote. > > what surprise me was the column name [DSMB DATE] was created as > intended? no > underscore substitution. > > > TIA. > > Yu


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