<?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: writing script to export tables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42647#M24755</link>
    <description>&lt;P&gt;Thanks, but I need a script to export&amp;nbsp;&lt;EM&gt;output&amp;nbsp;&lt;/EM&gt;tables, not a data table. So for example, JMP will save scripts to reproduce analyses in the current state; I need to export the results of those analyses to a .csv file.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2017 21:28:12 GMT</pubDate>
    <dc:creator>rmay</dc:creator>
    <dc:date>2017-07-28T21:28:12Z</dc:date>
    <item>
      <title>writing script to export tables</title>
      <link>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42611#M24742</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering how to write a script to automate exportation of specific tables in an output file? I need to calculate confidence intervals for a large set of data, and would like JMP to automatically copy those confidence intervals to either a .txt or .csv file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 15:57:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42611#M24742</guid>
      <dc:creator>rmay</dc:creator>
      <dc:date>2017-07-28T15:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: writing script to export tables</title>
      <link>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42623#M24746</link>
      <description>&lt;P&gt;Here is an example taken directly from the Scripting Index on how to save a data table to an output format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==.Scripting Index==&amp;gt;Data Table==&amp;gt;Save As&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Save( "$temp\deleteme Big Class.jmp" ); // explicit location
If( dt &amp;lt;&amp;lt; Save( "" ),
	Write( "\!nsaved to " || (dt &amp;lt;&amp;lt; GetPath) ),
	Write( "\!nsave canceled" )
); // prompt
dt &amp;lt;&amp;lt; Save( "$temp\deleteme Big Class.csv" ); // convert to CSV format
Close( dt, "NoSave" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jul 2017 19:25:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42623#M24746</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-07-28T19:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: writing script to export tables</title>
      <link>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42647#M24755</link>
      <description>&lt;P&gt;Thanks, but I need a script to export&amp;nbsp;&lt;EM&gt;output&amp;nbsp;&lt;/EM&gt;tables, not a data table. So for example, JMP will save scripts to reproduce analyses in the current state; I need to export the results of those analyses to a .csv file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 21:28:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42647#M24755</guid>
      <dc:creator>rmay</dc:creator>
      <dc:date>2017-07-28T21:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: writing script to export tables</title>
      <link>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42648#M24756</link>
      <description>&lt;P&gt;Any display table in JMP can be turned into a data table. &amp;nbsp;Interactively, you right mouse click on the table and select "Make into Data Table" or "Make into Combined Data Table".&lt;/P&gt;
&lt;P&gt;To do this in a script, you pass a message of "Make into Data Table" to the object.&lt;/P&gt;
&lt;P&gt;Here is the example from the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Make Into Data Table&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Baltic.jmp" );
p = PLS(
	Y( :ls, :ha, :dt ),
	X(
		:v1,
		:v2,
		:v3,
		:v4,
		:v5,
		:v6,
		:v7,
		:v8,
		:v9,
		:v10,
		:v11,
		:v12
	)
);
pr = p &amp;lt;&amp;lt; report;
pr[Outline Box( 2 )] &amp;lt;&amp;lt; Close;
pr[Outline Box( 3 )] &amp;lt;&amp;lt; Close;
tb = pr[Table Box( 1 )];
tb &amp;lt;&amp;lt; Make Into Data Table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jul 2017 21:34:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/writing-script-to-export-tables/m-p/42648#M24756</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-07-28T21:34:39Z</dc:date>
    </item>
  </channel>
</rss>

