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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 3815 views
  • 0 likes
  • 7 in conversation