Solved

Referencing a column with space in name in SAS

Posted on 2014-12-11
1
1,064 Views
Last Modified: 2016-02-13
Experts,

I have an Excel spreadsheet that has formatted column names.  Is there a way to reference a column in SAS if the name is
i.e.  "Provider Number".

I usually just change it to "Provider_Number" but I was wondering if there was a way to do this without changing the name.

Is there a way to change is after it is imported in using a Proc SQL or DATA Step?
0
Comment
Question by:morinia
1 Comment
 
LVL 14

Accepted Solution

by:
Aloysius Low earned 500 total points
ID: 40495283
what you can do is to enclose the column name in quotation marks:
"Provider Number"n

also, you'll need to add an option to make sure SAS allows it:
options validvarname = any;
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Question about consuming GB from Comcast 5 62
Session that filled up my transaction logs 1 66
form builder not starting 3 56
Vector, list Questions R 6 32
Creating and Managing Databases with phpMyAdmin in cPanel.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question