<?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: Issue with Random Indentation Changes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961589#M374867</link>
    <description>&lt;P&gt;Not sure where SAS stores that EE settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But for normal preferences they are stored in the SASUSER.PROFILE catalog.&amp;nbsp; And if you are running multiple SAS sessions without using the -RSASUSER option on startup then the 2nd,3rd,etc. sessions will not be able to open SASUSER.PROFILE.&amp;nbsp; So you end up getting a default profile instead of your persona; preferences.&amp;nbsp; That might change the tab spacing from 2 to 8 and cause a file with mix of tabs and spaces to look funny.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2025 16:52:38 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-03-11T16:52:38Z</dc:date>
    <item>
      <title>Issue with Random Indentation Changes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961450#M374813</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm experiencing an issue with indentation in SAS Enhanced Editor. I manually indent my code using spaces instead of tabs, but whenever I reopen a SAS program, random extra spaces are added to my code. The number of added spaces is inconsistent—some lines get one extra space, while others get six or seven. When I delete these (using backspace or delete keys), sometimes it will delete the entire space in one go, but not always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only happens to the sections of code that I have written, even in programs where multiple programmers have contributed. It’s becoming very time-consuming to fix the indentation every time I open a program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4 (M5) - 64-bit. Has anyone else experienced this issue, or does anyone know how to prevent SAS from modifying my indentation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 16:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961450#M374813</guid>
      <dc:creator>bizbaz20</dc:creator>
      <dc:date>2025-03-10T16:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Random Indentation Changes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961453#M374814</link>
      <description>&lt;P&gt;Make sure you have told the editor to NOT put tabs into the file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1741624544899.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105325iD9862F190E4A732E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1741624544899.png" alt="Tom_0-1741624544899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you already have that then perhaps someone else has edited the file and replaced the spaces with tabs?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 16:36:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961453#M374814</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-03-10T16:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Random Indentation Changes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961456#M374815</link>
      <description>&lt;P&gt;Hi, these are my settings currently. Would it be 'Replace tabs with spaces on file open'? It isn't to do with anyone else editing the files as I have just tested it with a colleague who didn't edit anything and the same issue occurred.&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;BR /&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bizbaz20_0-1741624839717.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105327iFD6EE85713C7F8CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bizbaz20_0-1741624839717.png" alt="bizbaz20_0-1741624839717.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 16:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961456#M374815</guid>
      <dc:creator>bizbaz20</dc:creator>
      <dc:date>2025-03-10T16:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Random Indentation Changes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961457#M374816</link>
      <description>&lt;P&gt;With those setting if you hit the TAB key on your keyboard the editor will actually put a physical '09'x character into the file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you open a file to edit that has physical tabs that were inserted using some other setting than 2 as the width of the tab stops then it will look funny.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Having actual physical tab characters in your file can cause all kinds of confusion after just a few simple edits.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 16:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961457#M374816</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-03-10T16:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Random Indentation Changes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961511#M374846</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/474106"&gt;@bizbaz20&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm experiencing an issue with indentation in SAS Enhanced Editor. I manually indent my code using spaces instead of tabs, but whenever I reopen a SAS program, random extra spaces are added to my code. The number of added spaces is inconsistent—some lines get one extra space, while others get six or seven. &lt;FONT size="5" color="#800080"&gt;&lt;STRONG&gt;When I delete these (using backspace or delete keys), &lt;U&gt;sometimes it will delete the entire space&lt;/U&gt; i&lt;/STRONG&gt;&lt;/FONT&gt;n one go, but not always.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The highlighted text above indicates that TAB characters are in the file.&lt;/P&gt;
&lt;P&gt;Note that the SAS auto indent will use tabs (which your editor settings can be made to save as spaces) even if you typically use the space key.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if multiple people are editing the files then different settings of the editors for number of spaces a tab represents might come into play.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 05:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961511#M374846</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2025-03-11T05:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Random Indentation Changes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961559#M374861</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;wrote:
&lt;P class="1741704380353"&gt;...&lt;/P&gt;
&lt;P&gt;Note that the SAS auto indent will use tabs (which your editor settings can be made to save as spaces) even if you typically use the space key.&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There are two options you can set in the Enhanced Editor to manager this behaviour.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1741704528047.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/105341iC91DBC2EC079D2AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1741704528047.png" alt="Tom_0-1741704528047.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Selecting the first makes SAS do the opposite of what you say.&amp;nbsp; When you type the TAB key spaces are inserted into the file instead of an actual TAB character.&lt;/P&gt;
&lt;P&gt;The second controls what happens when you open an existing file.&amp;nbsp; When selected existing tabs are replaced by spaces so that you can edit the file without worrying that copying text will cause tabs to appear in unwanted places.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 14:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961559#M374861</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-03-11T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Random Indentation Changes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961587#M374866</link>
      <description>&lt;P&gt;Thank you for explaining those options. I have now ticked both options and turned off automatic indentation. It hasn't happened since, but I will check some of my programs tomorrow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked my original settings against my colleagues, and they both match. Nor have they edited or opened the scripts in question, so I don't think it relates to other people editing it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 16:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961587#M374866</guid>
      <dc:creator>bizbaz20</dc:creator>
      <dc:date>2025-03-11T16:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Random Indentation Changes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961589#M374867</link>
      <description>&lt;P&gt;Not sure where SAS stores that EE settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But for normal preferences they are stored in the SASUSER.PROFILE catalog.&amp;nbsp; And if you are running multiple SAS sessions without using the -RSASUSER option on startup then the 2nd,3rd,etc. sessions will not be able to open SASUSER.PROFILE.&amp;nbsp; So you end up getting a default profile instead of your persona; preferences.&amp;nbsp; That might change the tab spacing from 2 to 8 and cause a file with mix of tabs and spaces to look funny.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 16:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-Random-Indentation-Changes/m-p/961589#M374867</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-03-11T16:52:38Z</dc:date>
    </item>
  </channel>
</rss>

