<?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 Open File Error in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Open-File-Error/m-p/4990#M4989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a JSL script (JMP 9) that works on csv files in a directory. The script works fine if its in the same directory as the csv files. It gives a 'unable to open file' error if its not in the same directory as the csv files. Can someone tell me what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preview Text Error: Unable to open file. &lt;/P&gt;&lt;P&gt;Import Text: Unable to determine delimiters. &lt;/P&gt;&lt;P&gt;Tried to open: /M:/OV9760/xyz.csv&lt;/P&gt;&lt;P&gt;Cannot open table in access or evaluation of 'Open' , Open( files1&lt;I&gt; )&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following script, error marked by /*###*/&lt;/P&gt;&lt;P&gt;dir1 = Pick Directory( "Select the folder where csv files are located" );&lt;/P&gt;&lt;P&gt;openDTs = {};&lt;/P&gt;&lt;P&gt;files1 = Files In Directory( dir1 );&lt;/P&gt;&lt;P&gt;start = Tick Seconds();&lt;/P&gt;&lt;P&gt;For( i = 1, i &amp;lt;= N Items( files1 ), i++,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Ends With( files1&lt;I&gt;, ".csv" ),&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open/*###*/(files1&lt;I&gt;);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt1 = Current Data Table();&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2012 06:21:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-06-04T06:21:48Z</dc:date>
    <item>
      <title>Open File Error</title>
      <link>https://community.jmp.com/t5/Discussions/Open-File-Error/m-p/4990#M4989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a JSL script (JMP 9) that works on csv files in a directory. The script works fine if its in the same directory as the csv files. It gives a 'unable to open file' error if its not in the same directory as the csv files. Can someone tell me what I am doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preview Text Error: Unable to open file. &lt;/P&gt;&lt;P&gt;Import Text: Unable to determine delimiters. &lt;/P&gt;&lt;P&gt;Tried to open: /M:/OV9760/xyz.csv&lt;/P&gt;&lt;P&gt;Cannot open table in access or evaluation of 'Open' , Open( files1&lt;I&gt; )&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the following script, error marked by /*###*/&lt;/P&gt;&lt;P&gt;dir1 = Pick Directory( "Select the folder where csv files are located" );&lt;/P&gt;&lt;P&gt;openDTs = {};&lt;/P&gt;&lt;P&gt;files1 = Files In Directory( dir1 );&lt;/P&gt;&lt;P&gt;start = Tick Seconds();&lt;/P&gt;&lt;P&gt;For( i = 1, i &amp;lt;= N Items( files1 ), i++,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If( Ends With( files1&lt;I&gt;, ".csv" ),&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open/*###*/(files1&lt;I&gt;);&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dt1 = Current Data Table();&lt;/P&gt;&lt;P&gt;-------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 06:21:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-File-Error/m-p/4990#M4989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-04T06:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Open File Error</title>
      <link>https://community.jmp.com/t5/Discussions/Open-File-Error/m-p/4991#M4990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the directory is not remembered or implicit in Open(), i.e. the path has to be included.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2800e1;"&gt;Open&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;dir1&lt;SPAN style="color: #160091;"&gt;||&lt;/SPAN&gt;files1&lt;STRONG&gt;[i&lt;/STRONG&gt;&lt;STRONG&gt;])&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #160091;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2012 06:33:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-File-Error/m-p/4991#M4990</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2012-06-04T06:33:30Z</dc:date>
    </item>
  </channel>
</rss>

