BookmarkSubscribeRSS Feed
tomcmacdonald
Quartz | Level 8

I.E a variable length character with no padding. 

2 REPLIES 2
ballardw
Super User

@tomcmacdonald wrote:

I.E a variable length character with no padding. 


Not really such a thing. When a character variable is created it has a fixed length. If you try to stuff more than the created/assigned length then the value will be truncated to the length.

 

"Padding" may not quite be what you think it is depending on how you use the variable.

LinusH
Tourmaline | Level 20
For SAS9 as @ballardw states there is no real VARCHAR data type. You can use compress to gain some similar advantage, but that acts on the whole record.
But in Viya, SAS has introduced the VARCHAR data type 😊
Data never sleeps

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 1115 views
  • 2 likes
  • 3 in conversation