<?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 statement in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484696#M125848</link>
    <description>&lt;P&gt;Have tried with the full path and got error too.&lt;/P&gt;&lt;P&gt;this is the code&lt;/P&gt;&lt;P&gt;data price;&lt;BR /&gt;infile="F:\SASUniversityEdition\myfolders\data_infile.txt" dlm = '09'x;&lt;BR /&gt;input brand $ model $ price;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2018 11:18:33 GMT</pubDate>
    <dc:creator>subhra07</dc:creator>
    <dc:date>2018-08-07T11:18:33Z</dc:date>
    <item>
      <title>infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484688#M125844</link>
      <description>&lt;P&gt;Hi when i use the below mentioned sas code to access the data, it throws the error-physical file does not exist. I am using sas studio. and have added the text data into my sas folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I have attached the file showing the error.&lt;/P&gt;&lt;P&gt;Do is need to add anything else.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data price;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;infile="/folders/myfolders/data_infile.txt";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;input brand $ model $ price;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 10:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484688#M125844</guid>
      <dc:creator>subhra07</dc:creator>
      <dc:date>2018-08-07T10:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484690#M125845</link>
      <description>&lt;P&gt;If you right click on the files and choose properties, you can see the file location&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484690#M125845</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2018-08-07T11:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484696#M125848</link>
      <description>&lt;P&gt;Have tried with the full path and got error too.&lt;/P&gt;&lt;P&gt;this is the code&lt;/P&gt;&lt;P&gt;data price;&lt;BR /&gt;infile="F:\SASUniversityEdition\myfolders\data_infile.txt" dlm = '09'x;&lt;BR /&gt;input brand $ model $ price;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484696#M125848</guid>
      <dc:creator>subhra07</dc:creator>
      <dc:date>2018-08-07T11:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484703#M125851</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155299"&gt;@subhra07&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Have tried with the full path and got error too.&lt;/P&gt;
&lt;P&gt;this is the code&lt;/P&gt;
&lt;P&gt;data price;&lt;BR /&gt;infile="F:\SASUniversityEdition\myfolders\data_infile.txt" dlm = '09'x;&lt;BR /&gt;input brand $ model $ price;&lt;BR /&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This can never work in UE, as the virtual machine only "sees" the UNIX file system.&lt;/P&gt;
&lt;P&gt;Have you tried '/folders/myfolder/data_infile.txt'? (if set up correctly, the shared folder has no trailing s in the VM)&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:41:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484703#M125851</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-07T11:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484705#M125853</link>
      <description>&lt;P&gt;Have got the solution. There should not be equal sign after infile statement&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484705#M125853</guid>
      <dc:creator>subhra07</dc:creator>
      <dc:date>2018-08-07T11:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484709#M125855</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155299"&gt;@subhra07&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Have got the solution. There should not be equal sign after infile statement&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ouch. At least one of us should have caught that immediately. Going for additional coffee.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484709#M125855</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-07T11:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484711#M125856</link>
      <description>&lt;P&gt;Yes I have tried that and it worked fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One more doubt. Will it work the same way&amp;nbsp;&lt;SPAN&gt;'/folders/myfolder/data_infile.txt' in SAS enterprise guide or do i have to give the full path&amp;nbsp;"F:\SASUniversityEdition\myfolders\data_infile.txt" dlm = '09'x&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484711#M125856</guid>
      <dc:creator>subhra07</dc:creator>
      <dc:date>2018-08-07T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484712#M125857</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155299"&gt;@subhra07&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes I have tried that and it worked fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more doubt. Will it work the same way&amp;nbsp;&lt;SPAN&gt;'/folders/myfolder/data_infile.txt' in SAS enterprise guide or do i have to give the full path&amp;nbsp;"F:\SASUniversityEdition\myfolders\data_infile.txt" dlm = '09'x&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can't use Enterprise Guide with University Edition.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Apart from that, it always depends on where the SAS process itself runs, and how files are brought into the respective server environment.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484712#M125857</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-07T12:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484713#M125858</link>
      <description>&lt;P&gt;I am not using EG with university edition.&lt;/P&gt;&lt;P&gt;the EG is working with office server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if we could import text files using the infile statement. And if so, what would be the code like?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:15:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484713#M125858</guid>
      <dc:creator>subhra07</dc:creator>
      <dc:date>2018-08-07T12:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484717#M125859</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155299"&gt;@subhra07&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not using EG with university edition.&lt;/P&gt;
&lt;P&gt;the EG is working with office server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know if we could import text files using the infile statement. And if so, what would be the code like?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The INFILE statement works the same no matter where SAS is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you do need to understand where your files are on the machine where SAS itself is running.&amp;nbsp; If it is not machine where your browser or SAS Enterprise Guide is running then the path you use in SAS will most likely be different than what you would use on your PC.&amp;nbsp; Also remember that SAS University Edition is using a virtual machine to run SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 12:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484717#M125859</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-07T12:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484733#M125863</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155299"&gt;@subhra07&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am not using EG with university edition.&lt;/P&gt;
&lt;P&gt;the EG is working with office server.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know if we could import text files using the infile statement. And if so, what would be the code like?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;said. You need to somehow make the file "visible" to the SAS process, either by copying it to the server, or using a shared resource that is accessible by both your desktop and the server, or by using a resource shared from the server that is mounted on your desktop. Either way, the path will be different from what you use on your PC.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:19:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/484733#M125863</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-07T13:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/511945#M137809</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used below codes&amp;nbsp; i.e. with Tilde and without tilde(~). And getting the same result . Can yo explain why is it so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;case1-&lt;/P&gt;&lt;P&gt;Data student;&lt;BR /&gt;infile cards dsd dlm=',';&lt;BR /&gt;Input id team $25.;&lt;BR /&gt;Cards;&lt;BR /&gt;1,"Green House,NCSS"&lt;BR /&gt;2,"Green House,ABPS"&lt;BR /&gt;3,"Green House,JKLM"&lt;BR /&gt;;&lt;BR /&gt;proc print;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;case 2-&lt;/P&gt;&lt;P&gt;Data student;&lt;BR /&gt;infile cards dsd dlm=',';&lt;BR /&gt;Input id team ~ $25.;&lt;BR /&gt;Cards;&lt;BR /&gt;1,"Green House,NCSS"&lt;BR /&gt;2,"Green House,ABPS"&lt;BR /&gt;3,"Green House,JKLM"&lt;BR /&gt;;&lt;BR /&gt;proc print;&lt;BR /&gt;Run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;same outputfor both cases-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; team&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;"Green House,NCSS"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;"Green House,ABPS"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;"Green House,JKLM"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While I expect to not receive quotes in output for case 1 scenario, as per the DSD fuctionality.&lt;/P&gt;&lt;P&gt;PLease explain Why getting same output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nirupama&lt;/P&gt;</description>
      <pubDate>Sat, 10 Nov 2018 17:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/511945#M137809</guid>
      <dc:creator>nirupama1</dc:creator>
      <dc:date>2018-11-10T17:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/511947#M137811</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/227032"&gt;@nirupama1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used below codes&amp;nbsp; i.e. with Tilde and without tilde(~). And getting the same result . Can yo explain why is it so?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;case1-&lt;/P&gt;
&lt;P&gt;Data student;&lt;BR /&gt;infile cards dsd dlm=',';&lt;BR /&gt;Input id team $25.;&lt;BR /&gt;Cards;&lt;BR /&gt;1,"Green House,NCSS"&lt;BR /&gt;2,"Green House,ABPS"&lt;BR /&gt;3,"Green House,JKLM"&lt;BR /&gt;;&lt;BR /&gt;proc print;&lt;BR /&gt;Run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case 2-&lt;/P&gt;
&lt;P&gt;Data student;&lt;BR /&gt;infile cards dsd dlm=',';&lt;BR /&gt;Input id team ~ $25.;&lt;BR /&gt;Cards;&lt;BR /&gt;1,"Green House,NCSS"&lt;BR /&gt;2,"Green House,ABPS"&lt;BR /&gt;3,"Green House,JKLM"&lt;BR /&gt;;&lt;BR /&gt;proc print;&lt;BR /&gt;Run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;same outputfor both cases-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; team&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;"Green House,NCSS"&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;"Green House,ABPS"&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;"Green House,JKLM"&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While I expect to not receive quotes in output for case 1 scenario, as per the DSD fuctionality.&lt;/P&gt;
&lt;P&gt;PLease explain Why getting same output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nirupama&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Do not hijack other people's threads, post your question in a new one. Old questions are only "seen" by the original participants.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Nov 2018 18:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-in-sas/m-p/511947#M137811</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-10T18:19:37Z</dc:date>
    </item>
  </channel>
</rss>

