Hello,
I am wondering if you could help me please.
I want to store a short text into a variable in different lines.
Please see below:
data want;
text_in_many_lines =
"Hello,
This is a text in many lines.
Thanks.";
run;
If I do so, I am able to store it but not in many lines as shown above.
Is there any way to do it?
Thanks
Do you want this to appear in separate lines in a report? If so, explain further.
There really is no concept of "many lines" in a SAS data set, you could insert a carriage break character into the string, but that's really useless unless you want to put this into a report.
Do you want this to appear in separate lines in a report? If so, explain further.
There really is no concept of "many lines" in a SAS data set, you could insert a carriage break character into the string, but that's really useless unless you want to put this into a report.
Just out of curiosity, why do you want this in a SAS data set variable?
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!
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.
Ready to level-up your skills? Choose your own adventure.