<?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: Variable is reading too many levels when inputting data in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771787#M31010</link>
    <description>Tom, I deleted all of the data and re-typed it in, and it somehow fixed it. When I originally inputted the data, I did have Tab characters but I replaced them all with spaces instead. For some reason, it was still reading a Tab character even though it didn't exist. Thank you so much for your help!</description>
    <pubDate>Sat, 02 Oct 2021 21:47:37 GMT</pubDate>
    <dc:creator>FoxCode</dc:creator>
    <dc:date>2021-10-02T21:47:37Z</dc:date>
    <item>
      <title>Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771774#M31003</link>
      <description>&lt;P&gt;The following is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Enter Data */
data leaf;
	input Delay Angle @@;
	cards;
	30 140  30 138  30 140  30 138	30 142
	45 140  45 150  45 120  45 128	45 130
	60 118  60 130  60 128  60 118	60 118
;
run;

/* Comparing All Delays */
proc glm data=leaf plots=diagnostics;
	class Delay;
	model Angle = Delay;
	means Delay / HOVtest=Levene;
	title "Comparison of All Delays";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I run the code, I receive the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FoxCode_0-1633205994161.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64321i4AED5E10808F89DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FoxCode_0-1633205994161.png" alt="FoxCode_0-1633205994161.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My issue is that the Delay variable should only have 3 levels with values of 30 45 60 but as you can see, it is reading in more levels than it should. To me, the data looks perfectly fine and I have no idea why it's not reading correctly. Any and all help is greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 20:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771774#M31003</guid>
      <dc:creator>FoxCode</dc:creator>
      <dc:date>2021-10-02T20:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771778#M31004</link>
      <description>&lt;P&gt;Please show the lines from the SAS log for the DATA step. It should indicate how many observations written and how many lines read.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 21:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771778#M31004</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-02T21:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771779#M31005</link>
      <description>&lt;P&gt;DO NOT insert TAB characters into data lines.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you replace the TAB characters with PIPE characters you can see your problem more clearly.&lt;/P&gt;
&lt;PRE&gt;data leaf;
|input Delay Angle @@;
|cards;
|30 140  30 138  30 140  30 138|30 142
|45 140  45 150  45 120  45 128|45 130
|60 118  60 130  60 128  60 118|60 118
;&lt;/PRE&gt;
&lt;PRE&gt;546   data leaf;
547     input Delay Angle @@;
548   cards;

NOTE: Invalid data for Delay in line 549 1-3.
RULE:       ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0
549         |30 140  30 138  30 140  30 138|30 142
Delay=0 Angle=140 _ERROR_=1 _N_=1
NOTE: Invalid data for Angle in line 549 29-34.
NOTE: Invalid data errors for file CARDS occurred outside the printed range.
NOTE: Increase available buffer lines with the INFILE n= option.
Delay=30 Angle=0 _ERROR_=1 _N_=4
NOTE: Invalid data for Angle in line 550 1-3.
550         |45 140  45 150  45 120  45 128|45 130
Delay=142 Angle=0 _ERROR_=1 _N_=5
NOTE: Invalid data for Delay in line 550 29-34.
NOTE: Invalid data errors for file CARDS occurred outside the printed range.
NOTE: Increase available buffer lines with the INFILE n= option.
Delay=0 Angle=130 _ERROR_=1 _N_=9
NOTE: Invalid data for Delay in line 551 1-3.
551         |60 118  60 130  60 128  60 118|60 118
Delay=0 Angle=118 _ERROR_=1 _N_=10
NOTE: Invalid data for Angle in line 551 29-34.
NOTE: Invalid data errors for file CARDS occurred outside the printed range.
NOTE: Increase available buffer lines with the INFILE n= option.
Delay=60 Angle=0 _ERROR_=1 _N_=13
NOTE: LOST CARD.
552         ;
Delay=118 Angle=0 _ERROR_=1 _N_=14
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.LEAF has 13 observations and 2 variables.
&lt;/PRE&gt;
&lt;P&gt;Also DO NOT indent the lines of data.&amp;nbsp; To remind yourself do not intend the CARDS/DATALINES statement either.&amp;nbsp; Then you will be less like to accidently get the tabs moved from the beginning of the line into the middle.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data leaf;
  input Delay Angle @@;
cards;
30 140  30 138  30 140  30 138 30 142
45 140  45 150  45 120  45 128 45 130
60 118  60 130  60 128  60 118 60 118
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general do not insert TAB characters into SAS program files at all. You can tell your SAS editor to insert the number of spaces you want to use when you hit the TAB key without actually sticking the '09'x character into the file to cause these kinds of trouble.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 21:36:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771779#M31005</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-02T21:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771781#M31006</link>
      <description>&lt;P&gt;I removed all Tab characters from the data input chunk. Here is the log that I receive:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FoxCode_0-1633210063967.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64323i03FD7E504611B075/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FoxCode_0-1633210063967.png" alt="FoxCode_0-1633210063967.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 21:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771781#M31006</guid>
      <dc:creator>FoxCode</dc:creator>
      <dc:date>2021-10-02T21:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771783#M31007</link>
      <description>&lt;P&gt;Additionally, here is the Output Data tab:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FoxCode_0-1633210169318.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64324iA881D8055A34AFA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FoxCode_0-1633210169318.png" alt="FoxCode_0-1633210169318.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 21:29:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771783#M31007</guid>
      <dc:creator>FoxCode</dc:creator>
      <dc:date>2021-10-02T21:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771785#M31008</link>
      <description>&lt;P&gt;You didn't remove/replace the tabs in column 31.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 21:39:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771785#M31008</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-02T21:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771786#M31009</link>
      <description>Tom, I apologize but I am very confused. I don't have a single Tab character in my entire file. I also don't have a column 31, let alone a line 31 (this is a very short code and I'm just trying to get the data to read correctly). I'm not very experienced with interpreting the SAS Log/Output Data, so I'm lost on what I'm doing wrong here.</description>
      <pubDate>Sat, 02 Oct 2021 21:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771786#M31009</guid>
      <dc:creator>FoxCode</dc:creator>
      <dc:date>2021-10-02T21:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771787#M31010</link>
      <description>Tom, I deleted all of the data and re-typed it in, and it somehow fixed it. When I originally inputted the data, I did have Tab characters but I replaced them all with spaces instead. For some reason, it was still reading a Tab character even though it didn't exist. Thank you so much for your help!</description>
      <pubDate>Sat, 02 Oct 2021 21:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771787#M31010</guid>
      <dc:creator>FoxCode</dc:creator>
      <dc:date>2021-10-02T21:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771790#M31011</link>
      <description>&lt;P&gt;How are you submitting SAS code?&amp;nbsp; Are you using Display Manager?&amp;nbsp; SAS/Studio? Something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Display Manager you can tell it to replace tabs with spaces.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 617px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64325i68F005B9127F8A9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Same thing for SAS/Studio&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 980px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64326iE48CCF263D91F08A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 21:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771790#M31011</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-02T21:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is reading too many levels when inputting data</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771791#M31012</link>
      <description>&lt;P&gt;The photograph of the SAS log you posted is clearly showing that the lines of data have the hex character 09 in the 31st column.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 101px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64327iC24E363FB481D476/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 22:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Variable-is-reading-too-many-levels-when-inputting-data/m-p/771791#M31012</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-02T22:01:48Z</dc:date>
    </item>
  </channel>
</rss>

