<?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 Trying to run old glm model (MANOVA) from older version of SAS but doesn't work in SAS Studio in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622612#M29984</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to rerun an old glm model (MANOVA) with code that works in SAS 9.4 but is not working in SAS Studio.&amp;nbsp; Again, this exact code works in older versions of SAS but not this one.&amp;nbsp; I think it may be the data I am inputting that is not getting read correctly, but I don't know what the problem is.&amp;nbsp; Any help is much appreciated!&amp;nbsp; I've attached the original text file with codes as well as screenshots of the output and error messages.&amp;nbsp; Thanks so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;ericgriffin742@gmail.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 06:13:12 GMT</pubDate>
    <dc:creator>eag14</dc:creator>
    <dc:date>2020-02-06T06:13:12Z</dc:date>
    <item>
      <title>Trying to read data from older version of SAS but doesn't work in SAS Studio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622615#M29982</link>
      <description>&lt;P&gt;I am trying to rerun an old glm model (MANOVA) with code that works in SAS 9.4 but is not working in SAS Studio.&amp;nbsp; Again, this exact code works in older versions of SAS but not this one.&amp;nbsp; I think it may be the data I am inputting that is not getting read correctly, but I don't know what the problem is.&amp;nbsp; Any help is much appreciated!&amp;nbsp; I've attached the original text file with codes as well as screenshots of the output and error messages.&amp;nbsp; Thanks so much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;
&lt;P&gt;ericgriffin742@gmail.com&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:34:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622615#M29982</guid>
      <dc:creator>eag14</dc:creator>
      <dc:date>2020-02-12T13:34:30Z</dc:date>
    </item>
    <item>
      <title>Trying to run old glm model (MANOVA) from older version of SAS but doesn't work in SAS Studio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622612#M29984</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to rerun an old glm model (MANOVA) with code that works in SAS 9.4 but is not working in SAS Studio.&amp;nbsp; Again, this exact code works in older versions of SAS but not this one.&amp;nbsp; I think it may be the data I am inputting that is not getting read correctly, but I don't know what the problem is.&amp;nbsp; Any help is much appreciated!&amp;nbsp; I've attached the original text file with codes as well as screenshots of the output and error messages.&amp;nbsp; Thanks so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;P&gt;ericgriffin742@gmail.com&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 06:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622612#M29984</guid>
      <dc:creator>eag14</dc:creator>
      <dc:date>2020-02-06T06:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to run old glm model (MANOVA) from older version of SAS but doesn't work in SAS Studio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622616#M29983</link>
      <description>&lt;P&gt;Add this statement in the data step that reads the data:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile cards dlm='09'x dsd truncover;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;as you have tabs as delimiters.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 07:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622616#M29983</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-06T07:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to run old glm model (MANOVA) from older version of SAS but doesn't work in SAS Studio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622725#M29989</link>
      <description>&lt;DIV&gt;Thanks so much for your quick reply.&amp;nbsp; Unfortunately, that still did not work.&amp;nbsp; I attached the new code txt file as well as the error messages.&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It says "statement not valid or it is used out of proper order."&amp;nbsp; I should put this code right before the data, correct?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Later it also says "NODATALINES or INFILE statements" (screenshots attached).&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks so much again!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Eric&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Feb 2020 14:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622725#M29989</guid>
      <dc:creator>eag14</dc:creator>
      <dc:date>2020-02-06T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to run old glm model (MANOVA) from older version of SAS but doesn't work in SAS Studio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622743#M29990</link>
      <description>&lt;P&gt;I'm not sure whether this page is relevant to my question, but could the problem be that my data are separated by spaces rather than tabs?&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Tab-delimiter-error-with-Datalines/td-p/302748" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Tab-delimiter-error-with-Datalines/td-p/302748&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Eric ric&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622743#M29990</guid>
      <dc:creator>eag14</dc:creator>
      <dc:date>2020-02-06T15:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to run old glm model (MANOVA) from older version of SAS but doesn't work in SAS Studio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622765#M29991</link>
      <description>&lt;P&gt;The first step in your program is reading the data into a dataset.&lt;/P&gt;
&lt;P&gt;Get that working first.&amp;nbsp; Then you can work on the actual GLM code.&lt;/P&gt;
&lt;P&gt;The problem might be that some editor you used as inserted tabs into your file. (40 years ago editors used to replace spaces with tabs to help save bytes in the documents. A single tab character could replace 2 to 8 space characters.)&amp;nbsp; In SAS Display Manager it would happily replace the tabs with spaces before sending the code to run.&amp;nbsp; But in SAS/Studio it does not provide this service for you and actual tab characters in program files end up being part of the source that SAS reads.&lt;/P&gt;
&lt;P&gt;Try telling SAS to expand the tabs in your data lines.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  infile datalines expandtabs;
  input ...
datalines;
....
;;;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or perhaps just save the lines of data to a separate file and have the data step read from that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  infile 'myfile.txt' expandtabs ;
  input .... ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Feb 2020 16:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/622765#M29991</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-06T16:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to run old glm model (MANOVA) from older version of SAS but doesn't work in SAS Studio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/623755#M30037</link>
      <description>&lt;P&gt;Great, this was really helpful.&amp;nbsp; The model is working now!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 04:53:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trying-to-read-data-from-older-version-of-SAS-but-doesn-t-work/m-p/623755#M30037</guid>
      <dc:creator>eag14</dc:creator>
      <dc:date>2020-02-11T04:53:48Z</dc:date>
    </item>
  </channel>
</rss>

