BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SIgnificatif
Quartz | Level 8

Hi All.

I have a variable with long strings.
I have read a response of a community contributor that covers the problem and how to fix it if the data is IMPORTED from a file
 (https://communities.sas.com/t5/SAS-Enterprise-Guide/Lrecl-and-Extra-Pipeline-in-SAS-output/m-p/39875...

I have an issue because I have many values in a variable I want to proceed locally ( I write them in the code) and I'm getting this message:

 

NOTE: The quoted string currently being processed has become more than 262 characters long. You might have unbalanced quotation

and the code is just a variable I'm running a loop from it to print the values:

 

mybar"text1|text|text2|text3|text1|text|text2|text3|text1|text|text2|text3|text1|text|text2|text3|text1|text|text2|text3|text1|text|text2|text3|";

 

anyone could give an opinion how to process all values and make that message dissapear from the log 🙂

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

If you want to write code that has a really long string constant you can turn off the option that generates the message about stings longer than 262 characters. 

 

Or you can write your constant as a combination of two or more shorter constants.

mybar"text1|text|text2|text3|text1|text|text2|text3|text1|text|text2"
  || "|text3|text1|text|text2|text3|text1|text|text2|text3|text1|text"
  || "|text2|text3|"
;

 

 

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

If you want to write code that has a really long string constant you can turn off the option that generates the message about stings longer than 262 characters. 

 

Or you can write your constant as a combination of two or more shorter constants.

mybar"text1|text|text2|text3|text1|text|text2|text3|text1|text|text2"
  || "|text3|text1|text|text2|text3|text1|text|text2|text3|text1|text"
  || "|text2|text3|"
;

 

 

SIgnificatif
Quartz | Level 8

Thank you for the response :).

Sincerley.

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

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
  • 2 replies
  • 1029 views
  • 0 likes
  • 2 in conversation