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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 536 views
  • 0 likes
  • 2 in conversation