<?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: infile error in SAS university edition in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397843#M96179</link>
    <description>&lt;P&gt;Because of the missing semi colon SAS thinks your data step whats to create three output datasets.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vishal infile "\folders\myfolders\v\vvv.txt" ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So the first two, visha1 and infile, are just normal membernames and so will default to the WORK library. &amp;nbsp;But the last one is a quoted physical filename. It is complaining that you want to use .txt as the extension on your dataset as SAS requires that it be .sas7bdat instead.&lt;/P&gt;
&lt;P&gt;Then since you do not have an INFILE statement SAS will also complain that the INPUT statement has no where to find the data lines.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2017 17:40:30 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-09-21T17:40:30Z</dc:date>
    <item>
      <title>infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397840#M96176</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;i am new to SAS programming and formed a simple program in SAS university edition&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data vishal&lt;BR /&gt;infile "\folders\myfolders\v\vvv.txt" ;&lt;BR /&gt;input gener $ age weight ;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title "frequency" ;&lt;BR /&gt;proc freq data=vishal;&lt;BR /&gt;tables gender;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error no dataline or infile statement&lt;/P&gt;&lt;P&gt;Error extension for physical file&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"\folders\myfolders\v\vvv.txt" does not corresponds to a valid member type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help in solving this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Attachement contains snapshots.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397840#M96176</guid>
      <dc:creator>ambakansaria</dc:creator>
      <dc:date>2017-09-21T17:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397841#M96177</link>
      <description>&lt;P&gt;You're missing a semicolon at the end of the DATA statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data vishal;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note, you changed the spelling of one variable (gener vs. gender).&amp;nbsp; You will need to make that consistent.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397841#M96177</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-09-21T17:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397842#M96178</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applied semicolon at the data statement and run again, but it show below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Physical file does not exist /opt/sasinside/SASConfig/lev1/SASApp/\folders\myfolders\v\vvv.txt.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:39:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397842#M96178</guid>
      <dc:creator>ambakansaria</dc:creator>
      <dc:date>2017-09-21T17:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397843#M96179</link>
      <description>&lt;P&gt;Because of the missing semi colon SAS thinks your data step whats to create three output datasets.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vishal infile "\folders\myfolders\v\vvv.txt" ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So the first two, visha1 and infile, are just normal membernames and so will default to the WORK library. &amp;nbsp;But the last one is a quoted physical filename. It is complaining that you want to use .txt as the extension on your dataset as SAS requires that it be .sas7bdat instead.&lt;/P&gt;
&lt;P&gt;Then since you do not have an INFILE statement SAS will also complain that the INPUT statement has no where to find the data lines.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397843#M96179</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-21T17:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397844#M96180</link>
      <description>&lt;P&gt;Generally the slashes are the opposite way, but SAS should still interpret it correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please include your FULL log in future questions. It's easy to make a typo and the log shows exactly where the error occurs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vishal;

infile "/folders/myfolders/v/vvv.txt" ;

input gender $ age weight ;

run ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397844#M96180</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-21T17:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397846#M96181</link>
      <description>&lt;P&gt;Unix uses / as the delimiters between directories in a path. It is Windows that uses \.&lt;/P&gt;
&lt;P&gt;So the error message is just saying that there is no file in the current directory '&lt;SPAN&gt;/opt/sasinside/SASConfig/lev1/SASApp/' with then name '\folders\myfolders\v\vvv.txt'.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use the real path to the file instead.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'/folders/myfolders/v/vvv.txt'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;That error is suprising to me as normally SAS happily converts the directory delimiters for you.&lt;/P&gt;
&lt;P&gt;Perhaps it cannot do that when you do not start the filename with a / or a valid relative directory name?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/166421"&gt;@ambakansaria&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Applied semicolon at the data statement and run again, but it show below error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Physical file does not exist /opt/sasinside/SASConfig/lev1/SASApp/\folders\myfolders\v\vvv.txt.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397846#M96181</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-21T17:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: infile error in SAS university edition</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397847#M96182</link>
      <description>&lt;P&gt;Thanks Reeza&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After changing the slashes, it works fine&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-error-in-SAS-university-edition/m-p/397847#M96182</guid>
      <dc:creator>ambakansaria</dc:creator>
      <dc:date>2017-09-21T17:49:31Z</dc:date>
    </item>
  </channel>
</rss>

