BookmarkSubscribeRSS Feed
Sarit
Calcite | Level 5
Hi,
I'm using SAS EG4.2 and i'm facing a problem with the limit of characters in SAS names.
While trying to transpose a table in SAS i got an error which indicates that the ID value of the parameter name in the input data set occurs twice. However, it isn't! The names are not the same.

While trying to investigate the problem i noticed that SAS cut the names after 32 characters.

Can someone help me to overcome this problem?

thanks!
3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12
You are going to have to shorten your ID variable length. The variable name length is a core feature of SAS, so you will have to adapt your data. Message was edited by: Doc@Duke
Sarit
Calcite | Level 5
thanks for your response!

is there any way to change the data in SAS? (not changing just the length of it but also its content - and by that i can create shorter and meaningful parameter names).

thanks in advance!
Doc_Duke
Rhodochrosite | Level 12
I'm not sure I understand your second question, as I thought I had already answered it.

Just create a task in EGuide that is BEFORE the transpose task to reduce the length of the ID variable.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1976 views
  • 0 likes
  • 2 in conversation