BookmarkSubscribeRSS Feed
bmsampath
Obsidian | Level 7

Hi All,

 

As far as I know, we can have maximum 32 chars as variable name length.

 

Is there any option/any way to increase the length?

 

Currently we extract the data from source database where we have variable name length more than 32 chars.

 

We want to preserver the same name in our platform.

 

Could you please suggest a solution for this?

 

Thanks,
Sampath

 

4 REPLIES 4
Kurt_Bremser
Super User

You can put the longer names into variable labels.

More than 32 characters are not possible in SAS, as there is only place for 32 characters in the SAS dataset file structure (among other things).

PeterClemmensen
Tourmaline | Level 20

what kind of source database?

 

There has been a few suggestions to workarounds in here, among others in this thread:

 

https://communities.sas.com/t5/SAS-Data-Management/Dealing-with-32-character-restrictions/td-p/10003...

 

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Variable names are used in programming, is the expectation that programmers will need to type in variable names of > 32 characters each time, sounds like a massive waste of resources.  I remember working with oracle tables, and that is a real pain typing.  You do have labels where long text can be put, so as to identify the columns, that would be the ideal solution.  You can also use named variable 'xyx'n, however that is horrendous and shouldn't be used unless absolutely necessary.  Me, I would shrink all the variable names down.

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
  • 4 replies
  • 4807 views
  • 3 likes
  • 4 in conversation