<?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 Reading the text file on remote server in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reading-the-text-file-on-remote-server/m-p/134293#M36464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your&amp;nbsp; help to overcome this issue&lt;/P&gt;&lt;P&gt;Lets say i have text file in unix server A&amp;nbsp; and I was trying to read that file into other server where my actual code is located to create SAS dataset.&lt;/P&gt;&lt;P&gt;Ex&lt;/P&gt;&lt;P&gt;sample. txt is on unix server&amp;nbsp; (host) 'abcd01'&lt;/P&gt;&lt;P&gt;I am&amp;nbsp; running my sas code which converts this&amp;nbsp; txt file as my dataset. (host=abcd01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did use this code below but no luck (I assume my servers use sftp connection)&lt;/P&gt;&lt;P&gt;filename myfile ftp 'data' cd='/u/kudzu/mydata'&lt;/P&gt;&lt;P&gt;&amp;nbsp; user='guest' host='hp720.hp.sas.com'&lt;/P&gt;&lt;P&gt;&amp;nbsp; recfm=v prompt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mydata / view=mydata; /* Create a view */&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile myfile;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input x $10. y 4.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=mydata; /* Print the data */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;NOTE : I dont want copy the files using ftp just wanted to read the file and create the dataset.&lt;/P&gt;&lt;P&gt;Any help is really appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;MVK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2013 12:00:15 GMT</pubDate>
    <dc:creator>mvk_sas</dc:creator>
    <dc:date>2013-05-16T12:00:15Z</dc:date>
    <item>
      <title>Reading the text file on remote server</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-the-text-file-on-remote-server/m-p/134293#M36464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your&amp;nbsp; help to overcome this issue&lt;/P&gt;&lt;P&gt;Lets say i have text file in unix server A&amp;nbsp; and I was trying to read that file into other server where my actual code is located to create SAS dataset.&lt;/P&gt;&lt;P&gt;Ex&lt;/P&gt;&lt;P&gt;sample. txt is on unix server&amp;nbsp; (host) 'abcd01'&lt;/P&gt;&lt;P&gt;I am&amp;nbsp; running my sas code which converts this&amp;nbsp; txt file as my dataset. (host=abcd01)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did use this code below but no luck (I assume my servers use sftp connection)&lt;/P&gt;&lt;P&gt;filename myfile ftp 'data' cd='/u/kudzu/mydata'&lt;/P&gt;&lt;P&gt;&amp;nbsp; user='guest' host='hp720.hp.sas.com'&lt;/P&gt;&lt;P&gt;&amp;nbsp; recfm=v prompt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mydata / view=mydata; /* Create a view */&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile myfile;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input x $10. y 4.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=mydata; /* Print the data */&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;NOTE : I dont want copy the files using ftp just wanted to read the file and create the dataset.&lt;/P&gt;&lt;P&gt;Any help is really appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;MVK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-the-text-file-on-remote-server/m-p/134293#M36464</guid>
      <dc:creator>mvk_sas</dc:creator>
      <dc:date>2013-05-16T12:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the text file on remote server</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-the-text-file-on-remote-server/m-p/134294#M36465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you need to use sftp, you have to specify that as connection method:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/p0xln1fiwsr340n1xxf4mkmfxp6f.htm#n1pptvj9ccv4yqn17er8dm5cs7ac" title="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/p0xln1fiwsr340n1xxf4mkmfxp6f.htm#n1pptvj9ccv4yqn17er8dm5cs7ac"&gt;FILENAME Statement, SFTP Access Method :: SAS(R) 9.3 Statements: Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 12:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-the-text-file-on-remote-server/m-p/134294#M36465</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2013-05-16T12:59:44Z</dc:date>
    </item>
  </channel>
</rss>

