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?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: