<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multi-line prompt input text in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multi-line-prompt-input-text/m-p/262360#M18261</link>
    <description>&lt;P&gt;Thanks Bruno. It works nicely.&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2016 09:56:22 GMT</pubDate>
    <dc:creator>LenFocus</dc:creator>
    <dc:date>2016-04-08T09:56:22Z</dc:date>
    <item>
      <title>Multi-line prompt input text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multi-line-prompt-input-text/m-p/262279#M18243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a multi-line prompt input inside SAS EG.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2665iDBE7478DFCDEAAE9/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="multiline_prompt.png" title="multiline_prompt.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After receving the input, I tried to output to the report via ODS statement.&lt;/P&gt;&lt;PRE&gt;ods text = "^{style [color=#808080 fontfamily='&amp;lt;serif&amp;gt; , &amp;lt;MTserif&amp;gt; , Times' fontsize=9PT LEFTMARGIN=1.5cm]■}^{style [color=black fontfamily='&amp;lt;serif&amp;gt; , &amp;lt;MTserif&amp;gt; , Times' fontsize=9PT]       &amp;amp;highlights }";&lt;/PRE&gt;&lt;P&gt;However, the line break seems to be missing inside the report.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2666i3B7A7B6188CA8318/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="multiline_prompt_output.png" title="multiline_prompt_output.png" /&gt;&lt;/P&gt;&lt;P&gt;Is there any way to add back the link breaks to the report?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 03:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multi-line-prompt-input-text/m-p/262279#M18243</guid>
      <dc:creator>LenFocus</dc:creator>
      <dc:date>2016-04-08T03:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line prompt input text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multi-line-prompt-input-text/m-p/262311#M18253</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Linebreaks are not preserved by the multi-line prompt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a possible workaround I suggest to use a prompt definition like this:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2667iA632DC71D84B99BB/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="Capture.PNG" title="Capture.PNG" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will give you an individual macro variable for each line. See part of the log below. The name of the prompt used in this example is MULTILINE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;32         %put _user_;
GLOBAL MULTILINE line1
GLOBAL MULTILINE0 2
GLOBAL MULTILINE1 line1
GLOBAL MULTILINE2 line2
GLOBAL MULTILINE_COUNT 2&lt;/PRE&gt;
&lt;P&gt;You can then use the individual macro variables to put together your text that you need. I agree not the most elegant way, but might be a possible workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is an example code to handle the multiple macro variables&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%macro generateText;
  %local i;
  %global newMultiline;
  %let newMultiline =;

  %if &amp;amp;MULTILINE_COUNT = 1 %then %do;
    %global MULTILINE1;
    %let MULTILINE1 = &amp;amp;multiline1;
  %end;

  %do i = 1 %to &amp;amp;MULTILINE_COUNT;
    %let newMultiline = &amp;amp;newmultiline.^{NEWLINE}&amp;amp;&amp;amp;multiline&amp;amp;i;
  %end;
%mend;

%generateText

ods escapechar="^";
ods text="&amp;amp;newMultiline";

proc print data=sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bruno&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 07:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multi-line-prompt-input-text/m-p/262311#M18253</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-04-08T07:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-line prompt input text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multi-line-prompt-input-text/m-p/262360#M18261</link>
      <description>&lt;P&gt;Thanks Bruno. It works nicely.&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://communities.sas.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 09:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Multi-line-prompt-input-text/m-p/262360#M18261</guid>
      <dc:creator>LenFocus</dc:creator>
      <dc:date>2016-04-08T09:56:22Z</dc:date>
    </item>
  </channel>
</rss>

