<?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: Carriage return in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/935000#M367638</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 16:49:48 GMT</pubDate>
    <dc:creator>dk333</dc:creator>
    <dc:date>2024-07-08T16:49:48Z</dc:date>
    <item>
      <title>Carriage return</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/934989#M367636</link>
      <description>&lt;P&gt;Is there a way to introduce a carriage return in the SAS 9.4 Program editor or Enhanced Program Editor?&amp;nbsp; I am writing a long documentation note for a program.&amp;nbsp; When I type, there is no automatic carriage return to the beginning of the line below.&amp;nbsp; I need to press "enter" to get the cursor to go to the next line.&amp;nbsp; Is there any way that SAS can roll the text over to the line below after a specified number of characters without me having to press the enter key?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:19:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/934989#M367636</guid>
      <dc:creator>dk333</dc:creator>
      <dc:date>2024-07-08T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage return</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/934998#M367637</link>
      <description>&lt;P&gt;The Program Editor: Open the editor, menu select Tools&amp;gt;Options&amp;gt;Program Editor.&lt;/P&gt;
&lt;P&gt;Go to the Autoflow tab.&lt;/P&gt;
&lt;P&gt;Click on the box AutoFlow Inserted Text&lt;/P&gt;
&lt;P&gt;May want to set the BOUNDS below that to a reasonable line length such as 80 or so. Otherwise the lines may default to I think 136 characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't think there is any autoflow equivalent for the Enhanced Program Editor&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/934998#M367637</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-08T16:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage return</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/935000#M367638</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 16:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/935000#M367638</guid>
      <dc:creator>dk333</dc:creator>
      <dc:date>2024-07-08T16:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage return</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/935007#M367639</link>
      <description>&lt;P&gt;The old program editor had a nice flow command you could use by entering command into the line number area.&amp;nbsp; But it has been broken for awhile.&amp;nbsp; It used to stop when it hit a blank line. Now it flows the whole file.&amp;nbsp; But it will still work as long as the text you want to flow is at the end of the program.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_1-1720459959657.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98217iBA612616A95B5C9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_1-1720459959657.png" alt="Tom_1-1720459959657.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_2-1720459993473.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98218i415C08E0835211C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_2-1720459993473.png" alt="Tom_2-1720459993473.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The "enhanced" editor did not include that feature (or any of the other useful line number commands).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could pretty easily mimic that by running a data step to dump the flowed text to the LOG and then just copy and paste it back into your program.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  file log column=cc ;
  input word :$200. @@ ;
  if length(word)+cc &amp;gt; 70 then put;
  put word @;
cards4;
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam nunc quam, scelerisque laoreet dignissim a, sodales et lectus. In suscipit et neque id pulvinar. In dignissim, eros non viverra faucibus, dolor mi mollis justo, eget pulvinar tortor risus eget
Praesent pharetra nisi eget nisi aliquam euismod. Sed porta molestie lacinia. Nam nec ex sed neque rutrum sagittis sit amet ac velit. Etiam sagittis eros est, id tincidunt urna tempus ut. Sed a sodales dui. Duis eu quam sapien. Donec ut est justo. In in te
lor ac ligula vestibulum dapibus.
;;;;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;2054  data _null_;
2055    file log column=cc ;
2056    input word :$200. @@ ;
2057    if length(word)+cc &amp;gt; 70 then put;
2058    put word @;
2059  cards4;

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam nunc
quam, scelerisque laoreet dignissim a, sodales et lectus. In suscipit
et neque id pulvinar. In dignissim, eros non viverra faucibus, dolor
mi mollis justo, eget pulvinar tortor risus eget velit. In viverra
risus vitae sapien consequat, id tempor purus mollis. In ultrices
felis massa, a volutpat leo ullamcorper at. Praesent pharetra nisi
eget nisi aliquam euismod. Sed porta molestie lacinia. Nam nec ex sed
neque rutrum sagittis sit amet ac velit. Etiam sagittis eros est, id
tincidunt urna tempus ut. Sed a sodales dui. Duis eu quam sapien.
Donec ut est justo. In in tellus fringilla tortor pretium
sollicitudin vel eu ligula. Duis mattis fermentum nibh, vel accumsan
quam aliquam et. Nulla nec do lor ac ligula vestibulum dapibus.
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

2063  ;;;;
&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2024 17:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/935007#M367639</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-08T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Carriage return</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/935085#M367652</link>
      <description>&lt;P&gt;Thank you for the thoughtful response.&amp;nbsp; I appreciate it.&amp;nbsp; The problem, though, is that I would still need to manually press enter at the end of every line when I'm creating the note to keep the line from flowing interminably off to the right of the screen.&amp;nbsp; I'm looking for something that can work while I'm creating the note, not after I've created the note.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 02:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Carriage-return/m-p/935085#M367652</guid>
      <dc:creator>dk333</dc:creator>
      <dc:date>2024-07-09T02:30:06Z</dc:date>
    </item>
  </channel>
</rss>

