<?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: How to read-in singular lines of a txt file and pull data from that file in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-read-in-singular-lines-of-a-txt-file-and-pull-data-from/m-p/63719#M34092</link>
    <description>&lt;P&gt;Hmmm, your request is unclear to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is your plan run the database extraction fro JMP or Matlab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP can read an Excel file.&amp;nbsp; JMP can also extract data from an Excel file using the Excel Wizard (JMP13 and higher) or using SQL.&amp;nbsp; JMP has ben able to use an Excel workbook as a database since JMP 9. However, to use SQL to extract Excel and you have 64 bit JMP and 32 bit Excel, a one time special setup is needed to define the machine DSN.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, this line of JSL from your script&lt;/P&gt;&lt;PRE&gt;Pnames = open("$Desktop/EPI-1310-EML_V004Pnames.txt");&lt;/PRE&gt;&lt;P&gt;is opening a table and Pnames is the refernce for that table and Pnames[i] makes no sense.&lt;/P&gt;&lt;P&gt;Does the Pnames.txt file have a header a column header?&amp;nbsp; If not, then uses this code like this&lt;/P&gt;&lt;PRE&gt;Opendt = Open( "$SAMPLE_IMPORT_DATA/EOF_comma.txt", Table Contains Column Headers( 0 ) );&lt;/PRE&gt;&lt;P&gt;If you do not have a header, and you Pnames.txt file is multiple lines, where each line is a parameter name, then to get the names use&amp;nbsp; Name = :Column 1[i] .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yo need to show what Pnames.txt&amp;nbsp; and Pset.txt look like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jul 2018 00:46:59 GMT</pubDate>
    <dc:creator>gzmorgan0</dc:creator>
    <dc:date>2018-07-24T00:46:59Z</dc:date>
    <item>
      <title>How to read-in singular lines of a txt file and pull data from that file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-in-singular-lines-of-a-txt-file-and-pull-data-from/m-p/63716#M34089</link>
      <description>&lt;P&gt;The goal of my code is with each iteration of a for loop it will read in a singular line from a txt file, put that data into a variable, and put that variable into a line of code that will pull data from a database.&lt;/P&gt;&lt;P&gt;I have a matlab code that pulls data from an excel sheet and trims the data into a certain number of characters and puts it into a txt file. I can easily change the matlab code to output this data differently if that would be easier for JMP to read in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached my non-working code.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 23:27:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-in-singular-lines-of-a-txt-file-and-pull-data-from/m-p/63716#M34089</guid>
      <dc:creator>masonlee98</dc:creator>
      <dc:date>2018-07-23T23:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to read-in singular lines of a txt file and pull data from that file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-in-singular-lines-of-a-txt-file-and-pull-data-from/m-p/63719#M34092</link>
      <description>&lt;P&gt;Hmmm, your request is unclear to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is your plan run the database extraction fro JMP or Matlab?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP can read an Excel file.&amp;nbsp; JMP can also extract data from an Excel file using the Excel Wizard (JMP13 and higher) or using SQL.&amp;nbsp; JMP has ben able to use an Excel workbook as a database since JMP 9. However, to use SQL to extract Excel and you have 64 bit JMP and 32 bit Excel, a one time special setup is needed to define the machine DSN.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, this line of JSL from your script&lt;/P&gt;&lt;PRE&gt;Pnames = open("$Desktop/EPI-1310-EML_V004Pnames.txt");&lt;/PRE&gt;&lt;P&gt;is opening a table and Pnames is the refernce for that table and Pnames[i] makes no sense.&lt;/P&gt;&lt;P&gt;Does the Pnames.txt file have a header a column header?&amp;nbsp; If not, then uses this code like this&lt;/P&gt;&lt;PRE&gt;Opendt = Open( "$SAMPLE_IMPORT_DATA/EOF_comma.txt", Table Contains Column Headers( 0 ) );&lt;/PRE&gt;&lt;P&gt;If you do not have a header, and you Pnames.txt file is multiple lines, where each line is a parameter name, then to get the names use&amp;nbsp; Name = :Column 1[i] .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yo need to show what Pnames.txt&amp;nbsp; and Pset.txt look like.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 00:46:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-in-singular-lines-of-a-txt-file-and-pull-data-from/m-p/63719#M34092</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-07-24T00:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to read-in singular lines of a txt file and pull data from that file</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-read-in-singular-lines-of-a-txt-file-and-pull-data-from/m-p/63795#M34133</link>
      <description>&lt;P&gt;name = :Column 1[i]; solved the probelm I was having.&lt;/P&gt;&lt;P&gt;Thank you for the quick response.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 17:11:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-read-in-singular-lines-of-a-txt-file-and-pull-data-from/m-p/63795#M34133</guid>
      <dc:creator>masonlee98</dc:creator>
      <dc:date>2018-07-24T17:11:54Z</dc:date>
    </item>
  </channel>
</rss>

