<?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: How to used JSL JMP tables into a multi-tabbed Excel workbook？ in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222976#M44487</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();di="c:\";
cNa=dt&amp;lt;&amp;lt;get column names;xF=As List(cNa[2 ::ncol(dt)]);
for(c=2,c&amp;lt;=ncol(dt),c++,
current data table(dt);ca=Column(c)&amp;lt;&amp;lt;Get Name;
d2 =dt&amp;lt;&amp;lt; Subset( All rows, columns( :name, Column(c) ) );Wait(0);
d2&amp;lt;&amp;lt;Save(di ||ca ||".jmp" );
);
dt&amp;lt;&amp;lt;Close Window;
Create Excel Workbook("c:\TheWorkBook.xlsx",xF,xF);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;xF is&amp;nbsp;&lt;EM&gt;&lt;SPAN class="skip"&gt;&amp;nbsp;&lt;A target="_blank"&gt;error&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="skip"&gt;{"","","",""}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="skip"&gt;{,,,}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Aug 2019 02:16:52 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2019-08-25T02:16:52Z</dc:date>
    <item>
      <title>How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222799#M44454</link>
      <description>&lt;P&gt;I would like to ask JMP community to help me out on a custom way to export JMP table to excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-08-23_14-23-06.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18958iC79BA4C2F662C4EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-08-23_14-23-06.png" alt="2019-08-23_14-23-06.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Aug 2019 12:24:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222799#M44454</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-08-23T12:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222834#M44461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12538"&gt;@lwx228&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; One resource within JMP that is very helpful is the Scripting Index platform under Help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You'll want to use the Save As on your data table. After you've opened it and done whatever you want to it, you would do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Save As("Filepath\filename.xlsx")&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You can have all sorts of extensions, csv, txt, etc. It then saves it according to the extension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You can even create an Excel workbook with somethign like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Create Excel Workbook("filepath\filename.xlsx",{"data table name 1", "data table name 2"}, {"Worksheet name 1", "Worksheet name 2"})&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It sounds like what you want to do is something more like the last option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:49:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222834#M44461</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-08-26T13:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222940#M44476</link>
      <description>&lt;P&gt;I still don't get it.Not done.&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Create Excel Workbook( "c:\MyWorkbook.xlsx", {"Big Class", "Abrasion"}, {"Big", "Abrasive"} );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:50:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222940#M44476</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-08-26T13:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222941#M44477</link>
      <description>&lt;P&gt;This example should work in JMP 13 or later&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

open("$SAMPLE_DATA/big class.jmp");
open("$SAMPLE_DATA/airline delays.jmp");

Create Excel Workbook(
	"$TEMP\TheWorkBook.xlsx",
	{"big class", "Airline delays"},
	{"Big", "Airline"}
);

wait(0);
close(data table("Big Class"), nosave);
close(data table("airline delays"), nosave);

wait(4);
open("$TEMP\TheWorkBook.xlsx");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Aug 2019 03:00:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222941#M44477</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-08-24T03:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222955#M44478</link>
      <description>Thank Jim!&lt;BR /&gt;&lt;BR /&gt;My requirements differ from the code of the JMP sample.&lt;BR /&gt;&lt;BR /&gt;I opened only one JMP file and divided "age, sex, height and weight" in the “Big class" into 4 different tables with name respectively, and saved them into 4 different tables in the same excel workbook.The four tables in this excel workbook are named "age," "sex," "height," and "weight."&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Sat, 24 Aug 2019 14:03:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222955#M44478</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-08-24T14:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222956#M44479</link>
      <description>I provided the above code as a complete example that works on my system for both JMP 13 and JMP 14.   So if you can run the code that I provided, it would give you an indication on where your problem might be. And as far as JMP and Excel are concerned, a data table is just a data table, so where they come from should not matter.</description>
      <pubDate>Sat, 24 Aug 2019 14:15:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222956#M44479</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-08-24T14:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222972#M44484</link>
      <description>I understand. First, divide "Big class.jmp "file into 4 JMP files with JSL as required, and then run the above code to generate an excel file of 4 tables.&lt;BR /&gt;&lt;BR /&gt;Thank Jim!</description>
      <pubDate>Sat, 24 Aug 2019 22:11:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222972#M44484</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-08-24T22:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222976#M44487</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();di="c:\";
cNa=dt&amp;lt;&amp;lt;get column names;xF=As List(cNa[2 ::ncol(dt)]);
for(c=2,c&amp;lt;=ncol(dt),c++,
current data table(dt);ca=Column(c)&amp;lt;&amp;lt;Get Name;
d2 =dt&amp;lt;&amp;lt; Subset( All rows, columns( :name, Column(c) ) );Wait(0);
d2&amp;lt;&amp;lt;Save(di ||ca ||".jmp" );
);
dt&amp;lt;&amp;lt;Close Window;
Create Excel Workbook("c:\TheWorkBook.xlsx",xF,xF);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;xF is&amp;nbsp;&lt;EM&gt;&lt;SPAN class="skip"&gt;&amp;nbsp;&lt;A target="_blank"&gt;error&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="skip"&gt;{"","","",""}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="skip"&gt;{,,,}&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 02:16:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222976#M44487</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-08-25T02:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222977#M44488</link>
      <description>&lt;P&gt;You need to evaluate the list:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

open("$SAMPLE_DATA/big class.jmp");
open("$SAMPLE_DATA/airline delays.jmp");

dts = {"big class", "Airline delays"};
spreads = {"Big", "Airline"};

Create Excel Workbook(
	"$TEMP\TheWorkBook2.xlsx",
	eval( dts )
	,
	eval( spreads )
);

wait(0);
close(data table("Big Class"), nosave);
close(data table("airline delays"), nosave);

wait(4);
open("$TEMP\TheWorkBook2.xlsx");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Aug 2019 02:27:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/222977#M44488</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-08-25T02:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/223042#M44498</link>
      <description>&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;I understand the full JSL is like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;But can't it ——{"age","sex","height","weight"}——be generated automatically by code?&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;This enables automation for different files.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="_tgt transPara"&gt;&lt;SPAN class="transSent"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt = Current Data Table();di="c:\";
cNa=dt&amp;lt;&amp;lt;get column names;xF=As List(cNa[2 ::ncol(dt)]);
for(c=2,c&amp;lt;=ncol(dt),c++,
current data table(dt);ca=Column(c)&amp;lt;&amp;lt;Get Name;
d2 =dt&amp;lt;&amp;lt; Subset( All rows, columns( :name, Column(c) ) );Wait(0);
d2&amp;lt;&amp;lt;Save(di ||ca ||".jmp" );
);
dt&amp;lt;&amp;lt;Close Window;
Create Excel Workbook("c:\TheWorkBook.xlsx",{"age","sex","height","weight"},{"age","sex","height","weight"});&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="_tgt transPara"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 08:42:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/223042#M44498</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-08-26T08:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/223074#M44501</link>
      <description>&lt;P&gt;I am not sure exactly what all you need with your code, but here is a simple script that creates your required subsets and saves them to an Excel workbook.&amp;nbsp; If you need to save the jmp tables as separate tables, in addition to the workbook, you can do that with a simple loop after the workbook is created.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

cNa = dt &amp;lt;&amp;lt; get column names;
xF = {};
For( c = 2, c &amp;lt;= N Col( dt ), c++,
	d2 = dt &amp;lt;&amp;lt; Subset(
		All rows,
		columns( dt:name, Column( dt, c ) ),
		output table( Char( cNa[c] ) )
	);
	Insert Into( xF, d2 &amp;lt;&amp;lt; get name );
);

close( dt, nosave );

Create Excel Workbook( "c:\TheWorkBook.xlsx", Eval( xF ), Eval( xF ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Aug 2019 13:34:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/223074#M44501</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-08-26T13:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to used JSL JMP tables into a multi-tabbed Excel workbook？</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/223099#M44508</link>
      <description>That's exactly what's needed.&lt;BR /&gt;&lt;BR /&gt;Thank Jim!</description>
      <pubDate>Mon, 26 Aug 2019 22:24:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-used-JSL-JMP-tables-into-a-multi-tabbed-Excel-workbook/m-p/223099#M44508</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-08-26T22:24:42Z</dc:date>
    </item>
  </channel>
</rss>

