BookmarkSubscribeRSS Feed
kdp
Calcite | Level 5 kdp
Calcite | Level 5
Hello,

I am connecting to a data set on a SQL server, where one of the column name is "In". I have tried pulling in the field using double quotes, single quotes and even renaming it in both proc sql and data step. But nothing seems to work.

And ideas?

kdp
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Have you tried the SAS "data set option" RENAME= used with FROM (PROC SQL) or the SET statement (DATA step)? It's best to share code and related SAS log (pasted in your post or post-reply) for what you have tried in order to allow subscribers to provide useful feedback/comment on your situation. Also, having the SAS log information (at least some relevant code leading up to the problem/error), let's subscribers know what's going on. Lastly, SAS version, OS platform, and whether you are local/remote server connected helps too.

Scott Barry
SBBWorks, Inc.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 575 views
  • 0 likes
  • 2 in conversation