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
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|"
;
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|"
;
Thank you for the response :).
Sincerley.
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!
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.
Ready to level-up your skills? Choose your own adventure.