<?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: File &amp;gt; Database &amp;gt; Save Table - JMP13 scripting help in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40271#M23577</link>
    <description>&lt;P&gt;Hi Tony,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simple example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;//This opens the JMPCARS table from SOMESCHEMA schema and gives it the title "mytest" //in JMP&lt;/P&gt;
&lt;P&gt;dt =Open Database ("DSN=ORACLEDSN;DBQ=TheDBQ;UID=MyUID;pwd=MyPW", "SELECT * FROM SOMESCHEMA.JMPCARS", "mytest");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Work on the data table or modify it in some way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dt &amp;lt;&amp;lt; Save Database("DSN=&lt;SPAN&gt;ORACLEDSN&lt;/SPAN&gt;;DBQ=&lt;SPAN&gt;TheDBQ&lt;/SPAN&gt;;UID=&lt;SPAN&gt;MyUID&lt;/SPAN&gt;;pwd=&lt;SPAN&gt;MyPW&lt;/SPAN&gt;", "&lt;SPAN&gt;SOMESCHEMA&lt;/SPAN&gt;.JMPCARS", Replace)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "Replace" in this case is optional, but tells JMP to first perform a DROPTABLE action to remove the original table from the database, before attempting to save the current table to the database. &amp;nbsp;If you don't specify Replace, then the table name specified must not already exist in the database or you will get an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2017 12:32:06 GMT</pubDate>
    <dc:creator>briancorcoran</dc:creator>
    <dc:date>2017-06-12T12:32:06Z</dc:date>
    <item>
      <title>File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40188#M23516</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMP13.bmp" style="width: 528px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6412iA4CBEA3D85F040B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="JMP13.bmp" alt="JMP13.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;from &lt;A href="http://www.jmp.com/support/help/13/Save_Data_Tables_to_a_Database.shtml#223403" target="_blank"&gt;http://www.jmp.com/support/help/13/Save_Data_Tables_to_a_Database.shtml#223403&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Does anyone have the scripting syntax for this feature?&lt;/P&gt;&lt;P&gt;Any help appreciated&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 14:04:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40188#M23516</guid>
      <dc:creator>TonyRivers</dc:creator>
      <dc:date>2017-06-09T14:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40198#M23521</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;i am using simple save command&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;you need to map the location you want to save to&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;if dt1&amp;nbsp;call your "table1"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;dt1 &lt;/FONT&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&amp;lt;&amp;lt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Save&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"\\xxxpath\table1.jmp"&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 14:57:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40198#M23521</guid>
      <dc:creator>guy_yosef</dc:creator>
      <dc:date>2017-06-09T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40205#M23526</link>
      <description>&lt;P&gt;I think you're looking for the &lt;A href="http://www.jmp.com/support/help/13-1/Databases.shtml#1919770" target="_self"&gt;Save Database()&lt;/A&gt;&amp;nbsp;message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find it in Help -&amp;gt; Scripting Index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JMPScreenSnapz103.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6414i6BEFBCC52F90FC59/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JMPScreenSnapz103.png" alt="JMPScreenSnapz103.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2017 16:16:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40205#M23526</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2017-06-09T16:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40261#M23569</link>
      <description>&lt;P&gt;this is the format that I have been using in JMP9 &amp;amp; JMP11 but does not seem to work in JMP13.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;dt&amp;lt;&amp;lt;Save Database("connectInfo", "TableName")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following in the Log file but no actions happen n the SQL dB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Scriptable[]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 10:40:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40261#M23569</guid>
      <dc:creator>TonyRivers</dc:creator>
      <dc:date>2017-06-12T10:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40262#M23570</link>
      <description>&lt;P&gt;Thanks - I may not have been clear on the post. I want to save a datatable to a SQL database as a new table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The screen shot shows an option - &lt;STRONG&gt;File &amp;gt; Database &amp;gt; Save Table&lt;/STRONG&gt; - where you can load a JMP table to a NEW dB table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the GUI, this works but I am looking for the jsl behind the GUI as format used in earlier versions does not seem to work in JMP13&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;dt&amp;lt;&amp;lt;Save Database("connectInfo", "TableName")&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 10:47:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40262#M23570</guid>
      <dc:creator>TonyRivers</dc:creator>
      <dc:date>2017-06-12T10:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40263#M23571</link>
      <description>&lt;P&gt;Version differences are probably best handled via an email to support@jmp.com, especially when something used to work and no longer appears to. You will find they are very responsive.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 10:50:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40263#M23571</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-06-12T10:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40271#M23577</link>
      <description>&lt;P&gt;Hi Tony,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simple example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;//This opens the JMPCARS table from SOMESCHEMA schema and gives it the title "mytest" //in JMP&lt;/P&gt;
&lt;P&gt;dt =Open Database ("DSN=ORACLEDSN;DBQ=TheDBQ;UID=MyUID;pwd=MyPW", "SELECT * FROM SOMESCHEMA.JMPCARS", "mytest");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Work on the data table or modify it in some way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dt &amp;lt;&amp;lt; Save Database("DSN=&lt;SPAN&gt;ORACLEDSN&lt;/SPAN&gt;;DBQ=&lt;SPAN&gt;TheDBQ&lt;/SPAN&gt;;UID=&lt;SPAN&gt;MyUID&lt;/SPAN&gt;;pwd=&lt;SPAN&gt;MyPW&lt;/SPAN&gt;", "&lt;SPAN&gt;SOMESCHEMA&lt;/SPAN&gt;.JMPCARS", Replace)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "Replace" in this case is optional, but tells JMP to first perform a DROPTABLE action to remove the original table from the database, before attempting to save the current table to the database. &amp;nbsp;If you don't specify Replace, then the table name specified must not already exist in the database or you will get an error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 12:32:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40271#M23577</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2017-06-12T12:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40275#M23581</link>
      <description>&lt;P&gt;Thanks for all help - Unfortunately, I still have no joy with commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I now have a ticket open with JMP Technical Support to investigate this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll update this discussion with resolution&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 12:55:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/40275#M23581</guid>
      <dc:creator>TonyRivers</dc:creator>
      <dc:date>2017-06-12T12:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: File &gt; Database &gt; Save Table - JMP13 scripting help</title>
      <link>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/44474#M25503</link>
      <description>&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs78AB3212"&gt;What is happening is the redundancy of the database being referenced twice in the Save Database ( ) argument, similar to the below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;dt&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;Save Database(&amp;nbsp;"DSN=DSN;Trusted_Connection=Yes;APP=JMP;WSID=LOCALHOST;DATABASE=&lt;FONT color="#FF0000"&gt;Practice&lt;/FONT&gt;;Network=NETWORK;",&amp;nbsp;"[&lt;FONT color="#FF0000"&gt;Practice&lt;/FONT&gt;].[dbo].[GLUTF]"&amp;nbsp;);&lt;/PRE&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="cs78AB3212"&gt;Removing the database reference in the SQL statement so it resembles the below, allowed the save.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;dt&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;Save Database(&amp;nbsp;"DSN=DSN;Trusted_Connection=Yes;APP=JMP;WSID=LOCALHOST;DATABASE=&lt;FONT color="#FF0000"&gt;Practice&lt;/FONT&gt;;Network=NETWORK;",&amp;nbsp;"[&lt;FONT color="#FF0000"&gt;dbo].[GLUTF&lt;/FONT&gt;]"&amp;nbsp;);&lt;/PRE&gt;
&lt;P class="cs95E872D0"&gt;This was reported to Development to be addressed in a future release of JMP.&lt;/P&gt;
&lt;P class="cs95E872D0"&gt;&lt;SPAN class="csAEB1315E"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 16:53:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/File-gt-Database-gt-Save-Table-JMP13-scripting-help/m-p/44474#M25503</guid>
      <dc:creator>Dahlia_Watkins</dc:creator>
      <dc:date>2017-09-13T16:53:18Z</dc:date>
    </item>
  </channel>
</rss>

