Desktop productivity for business analysts and programmers

SAS name - limit number of characters

Reply
Occasional Contributor
Posts: 5

SAS name - limit number of characters

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!
Valued Guide
Posts: 2,111

Re: SAS name - limit number of characters

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
Occasional Contributor
Posts: 5

Re: SAS name - limit number of characters

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!
Valued Guide
Posts: 2,111

Re: SAS name - limit number of characters

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.
Ask a Question
Discussion stats
  • 3 replies
  • 187 views
  • 0 likes
  • 2 in conversation