Your SAS programs, embedded in web apps and elsewhere

Let Carriage Return

Accepted Solution Solved
Reply
Super Contributor
Posts: 497
Accepted Solution

Let Carriage Return

I feel a little dumb asking this question but I googled the syntax for it for a bit and can’t find it.  How can I add a carriage return to a let statement

Like

Let = “the cat ran carriage return carriage return to the town”;


Accepted Solutions
Solution
‎08-24-2015 07:24 PM
Trusted Advisor
Posts: 1,301

Re: Let Carriage Return

Posted in reply to DavidPhillips2

For format agnostic delivery use ODS.

ods escapechar='~';

%let myString=the cat ran ~{NEWLINE 2} to the town;

ods text="&myString.";

View solution in original post


All Replies
Solution
‎08-24-2015 07:24 PM
Trusted Advisor
Posts: 1,301

Re: Let Carriage Return

Posted in reply to DavidPhillips2

For format agnostic delivery use ODS.

ods escapechar='~';

%let myString=the cat ran ~{NEWLINE 2} to the town;

ods text="&myString.";

Super Contributor
Posts: 497

Re: Let Carriage Return

I ended up using html tags.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

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