<?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: script for opening txt file in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/script-for-opening-txt-file/m-p/3091#M3091</link>
    <description>Thanks you..PM roz, this fix the problem. Excellent</description>
    <pubDate>Tue, 22 Mar 2011 00:23:59 GMT</pubDate>
    <dc:creator>wongpl</dc:creator>
    <dc:date>2011-03-22T00:23:59Z</dc:date>
    <item>
      <title>script for opening txt file</title>
      <link>https://community.jmp.com/t5/Discussions/script-for-opening-txt-file/m-p/3089#M3089</link>
      <description>i always need to open report file ( xxx.rpt) which store in text form in text delimitted form. &lt;BR /&gt;&lt;BR /&gt;i can use the jmp to import the file into jmp table, but the process is a bit tedious. &lt;BR /&gt;&lt;BR /&gt;here is what i do,&lt;BR /&gt;1) click " Open data table" &lt;BR /&gt;2) type in "*.*" in file name to show all file&lt;BR /&gt;3) select the report file that i need ( report file ending  with .rpt )&lt;BR /&gt;4) change the file type to txt&lt;BR /&gt;5) select the option of " Data with preview" click open&lt;BR /&gt;6) new window pop up, i select these setting,  delimited fileds, end of field is comma, file contains column names on line is 29 , data starts on line 30. &lt;BR /&gt;7) click "next"&lt;BR /&gt;8)&lt;/img&gt; click " import"&lt;BR /&gt;&lt;BR /&gt;i need a scrip that can automate this process. i need  a scrip to select the file , then click open to import the file. &lt;BR /&gt; i have look thru the Jmp scripting guide but fail to write it.</description>
      <pubDate>Thu, 17 Mar 2011 04:23:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/script-for-opening-txt-file/m-p/3089#M3089</guid>
      <dc:creator>wongpl</dc:creator>
      <dc:date>2011-03-17T04:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: script for opening txt file</title>
      <link>https://community.jmp.com/t5/Discussions/script-for-opening-txt-file/m-p/3090#M3090</link>
      <description>Once you have opened a file, click on the little red triangle next to the word Source in the upper left corner.  Select Edit, and copy the code.  Then, combine this code with the pick file() function:&lt;BR /&gt;&lt;BR /&gt;Here's an example I worked up where I saved Big Class.jmp as a csv file with the extension .rpt&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my_file = pick file({"All files|*"});&lt;BR /&gt;&lt;BR /&gt;my_dataset = open(my_file, &lt;BR /&gt;	columns(&lt;BR /&gt;		name = Character,&lt;BR /&gt;		age = Numeric,&lt;BR /&gt;		sex = Character,&lt;BR /&gt;		height = Numeric,&lt;BR /&gt;		weight = Numeric&lt;BR /&gt;	),&lt;BR /&gt;	Import Settings(&lt;BR /&gt;		End Of Line( CRLF, CR, LF ),&lt;BR /&gt;		End Of Field( Tab, Comma ),&lt;BR /&gt;		Strip Quotes( 1 ),&lt;BR /&gt;		Use Apostrophe as Quotation Mark( 0 ),&lt;BR /&gt;		Scan Whole File( 1 ),&lt;BR /&gt;		Labels( 1 ),&lt;BR /&gt;		Column Names Start( 1 ),&lt;BR /&gt;		Data Starts( 2 ),&lt;BR /&gt;		Lines To Read( All ),&lt;BR /&gt;		Year Rule( "10-90" )&lt;BR /&gt;	)&lt;BR /&gt;);</description>
      <pubDate>Thu, 17 Mar 2011 13:18:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/script-for-opening-txt-file/m-p/3090#M3090</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2011-03-17T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: script for opening txt file</title>
      <link>https://community.jmp.com/t5/Discussions/script-for-opening-txt-file/m-p/3091#M3091</link>
      <description>Thanks you..PM roz, this fix the problem. Excellent</description>
      <pubDate>Tue, 22 Mar 2011 00:23:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/script-for-opening-txt-file/m-p/3091#M3091</guid>
      <dc:creator>wongpl</dc:creator>
      <dc:date>2011-03-22T00:23:59Z</dc:date>
    </item>
  </channel>
</rss>

