<?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: Dots in output data in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946885#M370781</link>
    <description>There are must have invisible/unprintable character at end of Week, like TAB CR..&lt;BR /&gt;Firstly try to read WEEK in by character type and get rid of these unprintable character in WEEK.&lt;BR /&gt;&lt;BR /&gt;input frt $ ph Week $;&lt;BR /&gt;want=input(compress(week,'.', 'kd'),best32.);</description>
    <pubDate>Thu, 10 Oct 2024 01:31:47 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-10-10T01:31:47Z</dc:date>
    <item>
      <title>Dots in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946835#M370760</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I designed my data in Excel to run in SAS; however, SAS does not read the data. The output data shows some dots. Screenshot is attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have my different fertilizers treatments (frt) in the first column, the second column is plant height (ph), and the third row is the week that I have, which will be for repeated measures. Since fertilizers are non-numeric values, I put the'' $'' sign next to ''frt''. &amp;nbsp;Does anyone know what causes this issue and how to correct it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-09 at 2.59.36 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101061i887456F9E20CA2A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-09 at 2.59.36 PM.png" alt="Screenshot 2024-10-09 at 2.59.36 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-09 at 2.40.27 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101062i4FCF131FF046560C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-09 at 2.40.27 PM.png" alt="Screenshot 2024-10-09 at 2.40.27 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 19:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946835#M370760</guid>
      <dc:creator>Zynep93</dc:creator>
      <dc:date>2024-10-09T19:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946838#M370761</link>
      <description>&lt;P&gt;I suspect you have tabs instead of spaces between your data values?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 19:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946838#M370761</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2024-10-09T19:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946839#M370762</link>
      <description>&lt;P&gt;Try replacing them for spaces or put&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dlm=’09’x&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in your &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1rill4udj0tfun1fvce3j401plo.htm" target="_self"&gt;Infile Statement&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 19:13:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946839#M370762</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2024-10-09T19:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946840#M370763</link>
      <description>it could be yes, how could I remove that tab?</description>
      <pubDate>Wed, 09 Oct 2024 19:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946840#M370763</guid>
      <dc:creator>Zynep93</dc:creator>
      <dc:date>2024-10-09T19:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946847#M370764</link>
      <description>I put it before the input statement. Did not work.</description>
      <pubDate>Wed, 09 Oct 2024 20:04:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946847#M370764</guid>
      <dc:creator>Zynep93</dc:creator>
      <dc:date>2024-10-09T20:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946852#M370766</link>
      <description>&lt;P&gt;Did not work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the "&amp;lt;/&amp;gt;" to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "&amp;lt;/&amp;gt;" icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The suggestion was an OPTION on an INFILE statement that reads an external file. If you don't have the INFILE point to the correct file, or any file, then it will not work.&lt;/P&gt;
&lt;P&gt;Please include the LOG with the whole submitted code as text as shown above. We can't make copy/edit/paste corrections to code that appears in pictures.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 20:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946852#M370766</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-10-09T20:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946856#M370767</link>
      <description>&lt;P&gt;there is no errors in the log! It did not work out, which means that when I ONLY run the datelines, I still see the dots. I also did put '' infile data lines dlm='09'x;'' after ''data'' statement on the top. I was not sure I put the infile statement in the correct place. This is the log:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 data Waterford;&lt;BR /&gt;70 infile datalines dlm='09'x;&lt;BR /&gt;71 input frt$ ph Week;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-10-09 at 2.40.27 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101065iC92C7CA0E905960D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2024-10-09 at 2.40.27 PM.png" alt="Screenshot 2024-10-09 at 2.40.27 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;72 datalines;&lt;BR /&gt;&lt;BR /&gt;NOTE: Invalid data for ph in line 74 1-3.&lt;BR /&gt;NOTE: Invalid data for Week in line 74 5-80.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 20:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946856#M370767</guid>
      <dc:creator>Zynep93</dc:creator>
      <dc:date>2024-10-09T20:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946868#M370775</link>
      <description>&lt;P&gt;If you have inserted actual TAB characters into your in-line data then you can use the EXPANDTABS option of the INFILE statement to have SAS replace them with the proper number of spaces to move to the next tab stop.&amp;nbsp; Also add the TRUNCOVER option incase any of the lines have fewer values on them than the INPUT statement wants.&amp;nbsp;If you need to represent a missing value in the data use a single period (for either numeric or character variables).&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Waterford;
  infile datalines expandtabs truncover ;
  input frt$ ph Week;
datalines;
XXX 1 2
YYY 2 3
ZZZ . 4
. 5 6
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that most of the SAS editors (and most full functioning text editors) have an option to replace tabs with spaces when typing.&amp;nbsp; So you can use the TAB key like you would on an actual typewrite, to move to the next tab stop, and the editor will insert the right number of spaces to get there.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 21:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946868#M370775</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-10-09T21:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dots in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946885#M370781</link>
      <description>There are must have invisible/unprintable character at end of Week, like TAB CR..&lt;BR /&gt;Firstly try to read WEEK in by character type and get rid of these unprintable character in WEEK.&lt;BR /&gt;&lt;BR /&gt;input frt $ ph Week $;&lt;BR /&gt;want=input(compress(week,'.', 'kd'),best32.);</description>
      <pubDate>Thu, 10 Oct 2024 01:31:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946885#M370781</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-10T01:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946971#M370792</link>
      <description>Thank you for this. I created the data on Excel; I did not intentionally put or add tabs/spacers. Does Excel automatically add them when I copy from there to paste on SAS? Is there any other way to arrange the data without adding this statement for the next time? I have no problem, but I am just asking.</description>
      <pubDate>Thu, 10 Oct 2024 13:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946971#M370792</guid>
      <dc:creator>Zynep93</dc:creator>
      <dc:date>2024-10-10T13:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946986#M370796</link>
      <description>&lt;P&gt;Excel does insert tabs between cells when you copy and paste the values as text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you paste that into Display Manager Enhanced editor then the tabs remain.&amp;nbsp; But when you submit the program from display manager then the tabs in the program editor are converted to spaces automatically.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I suspect you are using SAS/Studio or some other front end tool for submitting your code where that does not happen.&amp;nbsp; If you change your preferences in SAS/Studio to replace the tabs then they are NOT pasted into the program editor.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1728568199098.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101108i865F68CE6E3F6808/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1728568199098.png" alt="Tom_0-1728568199098.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>Thu, 10 Oct 2024 13:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/946986#M370796</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-10-10T13:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fullstops in output data in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/947017#M370805</link>
      <description>Yes, I use SAS studio.&lt;BR /&gt;Thank you very much again.</description>
      <pubDate>Thu, 10 Oct 2024 16:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Dots-in-output-data-in-SAS/m-p/947017#M370805</guid>
      <dc:creator>Zynep93</dc:creator>
      <dc:date>2024-10-10T16:11:36Z</dc:date>
    </item>
  </channel>
</rss>

