<?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: Create Table and then Save it in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2993#M2993</link>
    <description>Works like a charm.  Thanks for poking around on it.  I'll notify tech support.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peter</description>
    <pubDate>Wed, 25 May 2011 12:17:30 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2011-05-25T12:17:30Z</dc:date>
    <item>
      <title>Create Table and then Save it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2987#M2987</link>
      <description>Hello JMPers,&lt;BR /&gt;&lt;BR /&gt;I'm creating a dataset by retrieving data from Oracle.  Immediately after getting the data I want to save it, using a name chosen by the user.  The JSL looks like this:&lt;BR /&gt;&lt;BR /&gt;dt = open database(dsn_string, sql_statement, "MedDRA Categories");&lt;BR /&gt;dt &amp;lt;&amp;lt; save();&lt;BR /&gt;&lt;BR /&gt;However, I don't get the File &amp;gt; Save dialog.  Instead it just tries to save the file (somewhere?) and the log shows the error messages&lt;BR /&gt;&lt;BR /&gt;    The file cannot be opened for writing, opening for reading only.&lt;BR /&gt;    This file could not be saved with the given name.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 24 Feb 2011 16:56:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2987#M2987</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2011-02-24T16:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table and then Save it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2988#M2988</link>
      <description>I didn't see it in the 8.0.2 docs but fooled around a bit and found that this brings up a save dialog:&lt;BR /&gt;&lt;BR /&gt;dt &amp;lt;&amp;lt; save("");&lt;BR /&gt;&lt;BR /&gt;The docs do say that dt &amp;lt;&amp;lt; save() saves using the current table name.&lt;BR /&gt;&lt;BR /&gt;I should add that I tried this using an Excel file as my "database" via ODBC. Not sure that the save thing has anything to do with how the table was created although I must say that I did not get the error messages you saw using save() and the file was successfully saved;&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Fri, 25 Feb 2011 13:42:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2988#M2988</guid>
      <dc:creator>mpb</dc:creator>
      <dc:date>2011-02-25T13:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table and then Save it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2989#M2989</link>
      <description>That worked great.  I don't think I would have figured that little trick out.  Thanks a lot Michael!</description>
      <pubDate>Fri, 25 Feb 2011 15:34:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2989#M2989</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2011-02-25T15:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table and then Save it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2990#M2990</link>
      <description>New wrinkle on this problem:&lt;BR /&gt;&lt;BR /&gt;I'm creating some XML text and would like to save it to an XML file.  I'm creating a default output filename, and would like the user to have a little control over the process.  I want something like what happens when you use SAVE(""), only I want to provide a default filename, and the extension must be XML.&lt;BR /&gt;&lt;BR /&gt;It looks like the PICK FILE function can do the job:&lt;BR /&gt;&lt;BR /&gt;path = pick file(&lt;PROMPT&gt;, &lt;INITIAL directory=""&gt;, &lt;FILTERLIST&gt;, &lt;FIRST filter=""&gt;, &lt;SAVEFLAG&gt;, &lt;DEFAULT file=""&gt;)&lt;BR /&gt;&lt;BR /&gt;Prompts the user with an Open window, returning the pathname of the chosen file.  The filterList argument is a list of strings of the form: "Label|suffix1;suffix2;...".  The first filter argument specifies which filter is initially shown.  The fifth argument indicates whether the window should function as a save (saveFlag = 1) or open (safeFlag = 0) window.  The final argument specifies the file that is initially selected.&lt;BR /&gt;&lt;BR /&gt;However the saveflag doesn't appear to work as advertised:&lt;BR /&gt;&lt;BR /&gt;xml_default_file = "myfile.xml";&lt;BR /&gt;xml_file_path = pick file("Save the XML file", "", {"XML File|xml", "All Files|*"},&lt;BR /&gt;	1, 1, xml_file);&lt;BR /&gt;&lt;BR /&gt;save text file(xml_file_path, xml_text);&lt;BR /&gt;&lt;BR /&gt;I get errors saying the file myfile.xml does not exist.  &lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;Peter&lt;/DEFAULT&gt;&lt;/SAVEFLAG&gt;&lt;/FIRST&gt;&lt;/FILTERLIST&gt;&lt;/INITIAL&gt;&lt;/PROMPT&gt;</description>
      <pubDate>Tue, 24 May 2011 18:50:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2990#M2990</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2011-05-24T18:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table and then Save it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2991#M2991</link>
      <description>Hi Peter,&lt;BR /&gt;&lt;BR /&gt;I just tried your example and it looks like there might be a bug here.&lt;BR /&gt;&lt;BR /&gt;Please send a note to tech support (support@jmp.com) and let them have a look.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 24 May 2011 20:42:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2991#M2991</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2011-05-24T20:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table and then Save it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2992#M2992</link>
      <description>Looks like the designators for open and save are reversed. Ie, 1 wants to open and 0 wants to save. The following does work but shouldn't if the function is fixed to operate as documented (or maybe the docs should be changed?):&lt;BR /&gt;&lt;BR /&gt;xml_text = "Some text to be saved";&lt;BR /&gt;xml_default_file = "myfile.xml";&lt;BR /&gt;xml_file_path = Pick File(&lt;BR /&gt;	"Save the XML file",&lt;BR /&gt;	"",&lt;BR /&gt;	{"XML File|xml", "All Files|*"},&lt;BR /&gt;	1,&lt;BR /&gt;	0,&lt;BR /&gt;	xml_default_file&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;Save Text File( xml_file_path, xml_text );</description>
      <pubDate>Tue, 24 May 2011 21:21:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2992#M2992</guid>
      <dc:creator>mpb</dc:creator>
      <dc:date>2011-05-24T21:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create Table and then Save it in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2993#M2993</link>
      <description>Works like a charm.  Thanks for poking around on it.  I'll notify tech support.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Peter</description>
      <pubDate>Wed, 25 May 2011 12:17:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Table-and-then-Save-it-in-JSL/m-p/2993#M2993</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2011-05-25T12:17:30Z</dc:date>
    </item>
  </channel>
</rss>

