<?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: Breaking long line in code in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833894#M329694</link>
    <description>&lt;P&gt;Tom, thanks again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I see what's going on. Other than the fact that I have to open the old editor and go back and forth a little bit, this works good. I hope to see that function added to the enhanced editor in the future, though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also block moving seems to be neat. I mostly just use "shift" and arrows or home/end to copy/paste blocks. The old editor seems to have some nice tricks that enhanced doesn't have. Is there any article/posting that introduces these all? Or nowadays not so many useful tricks left since enhanced editor came in?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for the tip.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 16:45:16 GMT</pubDate>
    <dc:creator>MadQuant</dc:creator>
    <dc:date>2022-09-16T16:45:16Z</dc:date>
    <item>
      <title>Breaking long line in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833480#M329486</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to use word wrap (as in notepad) in enhanced editor?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes I copy some text from random sources to the editor and have to manually insert line breaks by hitting enters to make it in multiple lines. This is somewhat annoying. I couldn't find any function that allows that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 04:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833480#M329486</guid>
      <dc:creator>MadQuant</dc:creator>
      <dc:date>2022-09-15T04:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking long line in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833485#M329488</link>
      <description>&lt;P&gt;The regular old program editor had a nice word wrap utility.&amp;nbsp; The TF directive entered into the number prefixes.&lt;/P&gt;
&lt;P&gt;So turn on the line numbers (NUM command).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1663216113024.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75252iF747869513FB985A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1663216113024.png" alt="Tom_0-1663216113024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then type TF followed by the column number where it should wrap, for example 65.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_1-1663216165755.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75253i61033C7B00B0740A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_1-1663216165755.png" alt="Tom_1-1663216165755.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_2-1663216187851.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75254i4310B18302E74F78/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_2-1663216187851.png" alt="Tom_2-1663216187851.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note it is kind of broken now.&amp;nbsp; It used to stop when it hit a blank line.&amp;nbsp; But it now longer does that.&amp;nbsp; So you have to move the stuff you want to FLOW to bottom of the editor window.&amp;nbsp; You can always move it back using the MM block commands in the number prefix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 04:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833485#M329488</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-15T04:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking long line in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833767#M329619</link>
      <description>&lt;P&gt;Tom, thanks for feedback. Appreciate it.&lt;/P&gt;
&lt;P&gt;So in conclusion there seems no way to do it using only enhanced editor.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyhow I still don't follow what you said in the last part. "&lt;SPAN&gt;So you have to move the stuff you want to FLOW to bottom of the editor window.&amp;nbsp; You can always move it back using the MM block commands in the number prefix."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you elaborate a little?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 04:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833767#M329619</guid>
      <dc:creator>MadQuant</dc:creator>
      <dc:date>2022-09-16T04:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking long line in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833843#M329665</link>
      <description>&lt;P&gt;The bug I remember seems to be fixed in SAS 9.4m5.&amp;nbsp; Not sure if it will come back again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is demonstration of how text flow works.&amp;nbsp; The blank lines indicate the end of the "paragraphs".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1663333290715.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75315i51C17AE0D85F668D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1663333290715.png" alt="Tom_0-1663333290715.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now try to flow it into 65 columns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_1-1663333353331.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75316iEC1562B4A254ED2D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_1-1663333353331.png" alt="Tom_1-1663333353331.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The bug would have flowed all three of those paragraphs into one.&amp;nbsp; With the bug gone it just flows the first line into two lines.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_2-1663333731996.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75317i04E1D6230B1D3B5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_2-1663333731996.png" alt="Tom_2-1663333731996.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The block move command allows you to mark the beginning and end of a range of lines and move them before or after a target line.&amp;nbsp; Let's do an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I wanted to move the extraneous lines that appear before the %MACRO statement in the file that defines the autocall macro %XPT2LOC so that they become part of the macro definition instead of being executed only the first time the macro is called I can place an MM in the line numbers on the first and last line of the block to move and B on the line where I want them moved before.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_3-1663334044945.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75318iC025A086737FA69D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_3-1663334044945.png" alt="Tom_3-1663334044945.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The result is a file that is more valid as an autocall macro definition because the first line of the file is the %MACRO statement.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_4-1663334104201.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75319i36DB5B24A33D6C39/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_4-1663334104201.png" alt="Tom_4-1663334104201.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833843#M329665</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-16T14:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking long line in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833894#M329694</link>
      <description>&lt;P&gt;Tom, thanks again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I see what's going on. Other than the fact that I have to open the old editor and go back and forth a little bit, this works good. I hope to see that function added to the enhanced editor in the future, though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also block moving seems to be neat. I mostly just use "shift" and arrows or home/end to copy/paste blocks. The old editor seems to have some nice tricks that enhanced doesn't have. Is there any article/posting that introduces these all? Or nowadays not so many useful tricks left since enhanced editor came in?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for the tip.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 16:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833894#M329694</guid>
      <dc:creator>MadQuant</dc:creator>
      <dc:date>2022-09-16T16:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking long line in code</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833902#M329695</link>
      <description>&lt;P&gt;The "enhanced" editor is definitely a step back in terms of functionality.&amp;nbsp; In addition to not supporting directives typed into the number prefix it does not support using SAS macros to generate commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need to dig up a copy of the SAS 6.12 documentation to find a good description of Display Manager including the Program Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The on-line documentation seems to be limited to this page that mixes commands you could type at the command line and those you can use in the number prefix area.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/p0ucvztqs3j33en1ikzn904rpwxg.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hostunx/p0ucvztqs3j33en1ikzn904rpwxg.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 17:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Breaking-long-line-in-code/m-p/833902#M329695</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-09-16T17:38:32Z</dc:date>
    </item>
  </channel>
</rss>

