<?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: &amp;quot;open&amp;quot; in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2107#M2107</link>
    <description>I think the following may be what you need:&lt;BR /&gt;&lt;BR /&gt;1. Open a file manually.  In the dataset see if there's a red triangle with "Source" next to it.  Click on the red triangle and select "Edit Script".&lt;BR /&gt;&lt;BR /&gt;2. This should bring up a script window with a giant Open() command.  Save this script but make the filename a variable (e.g. import_filename).&lt;BR /&gt;&lt;BR /&gt;3. Use the Pick File() command to find the file you want to import.  Set the import_filename variable = to this file.&lt;BR /&gt;&lt;BR /&gt;4. Plug the import_filename variable into your previously saved Open() command from step 2.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peter</description>
    <pubDate>Tue, 13 Jul 2010 17:25:44 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2010-07-13T17:25:44Z</dc:date>
    <item>
      <title>"open" in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2106#M2106</link>
      <description>This is probably laughably simple but I'm brand new to scripting...&lt;BR /&gt;&lt;BR /&gt;I have written a script that manipulates a data table.  That all works fine.  Right now it just operates on the current data table.&lt;BR /&gt;&lt;BR /&gt;What I would like to have it do is actually import the raw text file as the first step when I run the script.  However, I want to be able to select which file I'm importing and I want the script to automatically apply certain arguments to the table.  I can just use:&lt;BR /&gt;&lt;BR /&gt;open();&lt;BR /&gt;&lt;BR /&gt;but then I need to select which columns to import, select character types, etc.  I would like to have the script do those things automatically each time.  So I want to include arguments that are the same each time but don't want the file path/name to be the same each time.  Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 13 Jul 2010 15:51:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2106#M2106</guid>
      <dc:creator />
      <dc:date>2010-07-13T15:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: "open" in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2107#M2107</link>
      <description>I think the following may be what you need:&lt;BR /&gt;&lt;BR /&gt;1. Open a file manually.  In the dataset see if there's a red triangle with "Source" next to it.  Click on the red triangle and select "Edit Script".&lt;BR /&gt;&lt;BR /&gt;2. This should bring up a script window with a giant Open() command.  Save this script but make the filename a variable (e.g. import_filename).&lt;BR /&gt;&lt;BR /&gt;3. Use the Pick File() command to find the file you want to import.  Set the import_filename variable = to this file.&lt;BR /&gt;&lt;BR /&gt;4. Plug the import_filename variable into your previously saved Open() command from step 2.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peter</description>
      <pubDate>Tue, 13 Jul 2010 17:25:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2107#M2107</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2010-07-13T17:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: "open" in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2108#M2108</link>
      <description>Thanks.  I think that's getting me close but I must not be understanding something.  Here's basically what the beginning of my script looks like:&lt;BR /&gt;&lt;BR /&gt;import_filename=pick file("select file","D:\Documents and Settings\Bob\My Documents\Projects\");&lt;BR /&gt;&lt;BR /&gt;dt=Open(&lt;BR /&gt;	"import_filename",&lt;BR /&gt;	columns(&lt;BR /&gt;		col1= Character,&lt;BR /&gt;		col2 = Character,&lt;BR /&gt;		col3 = Character,&lt;BR /&gt;		. = Omit,&lt;BR /&gt;		),&lt;BR /&gt;	);&lt;BR /&gt;&lt;BR /&gt;Do you see what I'm doing wrong?</description>
      <pubDate>Tue, 13 Jul 2010 18:59:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2108#M2108</guid>
      <dc:creator />
      <dc:date>2010-07-13T18:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: "open" in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2109#M2109</link>
      <description>Remove the double quotes around "import_filename".  It's a variable and you're giving it a literal string.&lt;BR /&gt;&lt;BR /&gt;dt=Open(&lt;BR /&gt;import_filename,&lt;BR /&gt;columns(&lt;BR /&gt;col1= Character,&lt;BR /&gt;col2 = Character,&lt;BR /&gt;col3 = Character,&lt;BR /&gt;. = Omit,&lt;BR /&gt;),&lt;BR /&gt;);</description>
      <pubDate>Tue, 13 Jul 2010 19:28:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2109#M2109</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2010-07-13T19:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: "open" in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2110#M2110</link>
      <description>Thanks!  As I said, I'm a newbie.  It works perfectly now.</description>
      <pubDate>Tue, 13 Jul 2010 19:43:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-open-quot-in-JSL/m-p/2110#M2110</guid>
      <dc:creator />
      <dc:date>2010-07-13T19:43:10Z</dc:date>
    </item>
  </channel>
</rss>

