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 (October 2003, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 29 Oct 2003 12:02:48 -0800
Reply-To:     Art <artshen@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Art <artshen@HOTMAIL.COM>
Organization: http://groups.google.com
Subject:      How to deal with column name with a space in SAS SQL
Content-Type: text/plain; charset=ISO-8859-1

Hi, I need to create a SAS dataset from a SQL Server table. However, the column headers of that table have space in it. eg. [customer number],[customer name]. In SQL server itself, you can put column name between "[" and "]" . But it doesn't work in SAS code. Anyone has the same problem and have it solved?

/****the following code doesn't work *****/ proc sql; create table tab1 as select cust.[customer number], cust.[customer name] from cust; quit;

Thanks

Art


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