BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Nira
Calcite | Level 5
Yes. I am new to SAS. But can understand the existing code by google.
Nira
Calcite | Level 5
Thanks for the clear explanation. Another problem why it truncated was due to SYMGET function. But not sure why it truncates. So i declare length function for that symget varible and Also for new variable as you said. After that i got correct outptut. But want to know the reason Why symget truncates the string
Kurt_Bremser
Super User

From the documentation of the SYMGET Function:

 

If the SYMGET function returns a value to a variable that has not yet been assigned a length, by default the variable is assigned a length of 200.

 

There is a VERY BIG reason why Maxim 1 (Read the Documentation) is number one. It is the most important and most helpful rule for people working with SAS.

Nira
Calcite | Level 5
 
Nira
Calcite | Level 5
Thankyou.

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

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
  • 19 replies
  • 5745 views
  • 0 likes
  • 7 in conversation