<?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 Apply JSL script to multiple sheets from excel in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Apply-JSL-script-to-multiple-sheets-from-excel/m-p/479297#M72352</link>
    <description>&lt;P&gt;So I have an excel file with multiple sheets that have the same kind of dataframe (just different values) in each of the sheets. I was able to export a script for "Fit Y by X"&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open();

Fit Group(
	Bivariate( Y( :Total_Cost ), X( :LGP1 ), Automatic Recalc( 1 ) ),
	Bivariate( Y( :Total_Cost ), X( :iteration ), Automatic Recalc( 1 ) ),
	Bivariate( Y( :LGP2 ), X( :LGP1 ), Automatic Recalc( 1 ) ),
	Bivariate( Y( :LGP2 ), X( :iteration ), Automatic Recalc( 1 ) ),
	&amp;lt;&amp;lt;{Arrange in Rows( 2 )}
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm using this script to call from python using subprocess.call([&amp;lt;path to jmp.exe&amp;gt;, &amp;lt;jsl_script_filepath&amp;gt;]).&lt;BR /&gt;When I execute the python code, I select my excel file and the script is being applied to only the first sheet whereas I want it to apply on all the sheets. Could someone help how I can achieve that?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm using JMP14 and python3 to do the above.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:57:03 GMT</pubDate>
    <dc:creator>pgkla</dc:creator>
    <dc:date>2023-06-09T16:57:03Z</dc:date>
    <item>
      <title>Apply JSL script to multiple sheets from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Apply-JSL-script-to-multiple-sheets-from-excel/m-p/479297#M72352</link>
      <description>&lt;P&gt;So I have an excel file with multiple sheets that have the same kind of dataframe (just different values) in each of the sheets. I was able to export a script for "Fit Y by X"&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open();

Fit Group(
	Bivariate( Y( :Total_Cost ), X( :LGP1 ), Automatic Recalc( 1 ) ),
	Bivariate( Y( :Total_Cost ), X( :iteration ), Automatic Recalc( 1 ) ),
	Bivariate( Y( :LGP2 ), X( :LGP1 ), Automatic Recalc( 1 ) ),
	Bivariate( Y( :LGP2 ), X( :iteration ), Automatic Recalc( 1 ) ),
	&amp;lt;&amp;lt;{Arrange in Rows( 2 )}
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm using this script to call from python using subprocess.call([&amp;lt;path to jmp.exe&amp;gt;, &amp;lt;jsl_script_filepath&amp;gt;]).&lt;BR /&gt;When I execute the python code, I select my excel file and the script is being applied to only the first sheet whereas I want it to apply on all the sheets. Could someone help how I can achieve that?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm using JMP14 and python3 to do the above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:57:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Apply-JSL-script-to-multiple-sheets-from-excel/m-p/479297#M72352</guid>
      <dc:creator>pgkla</dc:creator>
      <dc:date>2023-06-09T16:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Apply JSL script to multiple sheets from excel</title>
      <link>https://community.jmp.com/t5/Discussions/Apply-JSL-script-to-multiple-sheets-from-excel/m-p/479319#M72353</link>
      <description>&lt;P&gt;If the&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open(); &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is opening all of the sheets, then the below should do what you want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here( 1 );
Open();
For( i = 1, i &amp;lt;= N Table(), i++,
	Data Table( i ) &amp;lt;&amp;lt; Fit Group(
		Bivariate( Y( :Total_Cost ), X( :LGP1 ), Automatic Recalc( 1 ) ),
		Bivariate( Y( :Total_Cost ), X( :iteration ), Automatic Recalc( 1 ) ),
		Bivariate( Y( :LGP2 ), X( :LGP1 ), Automatic Recalc( 1 ) ),
		Bivariate( Y( :LGP2 ), X( :iteration ), Automatic Recalc( 1 ) ),
		&amp;lt;&amp;lt;{Arrange in Rows( 2 )}
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Apr 2022 19:52:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Apply-JSL-script-to-multiple-sheets-from-excel/m-p/479319#M72353</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-14T19:52:10Z</dc:date>
    </item>
  </channel>
</rss>

