<?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: error in set col value with JSL formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/error-in-set-col-value-with-JSL-formula/m-p/484654#M72880</link>
    <description>&lt;P&gt;Thanks, and it also explains why the last line "magically" works, when I switch to the tabulate table :)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2022 00:04:54 GMT</pubDate>
    <dc:creator>ScatterChart190</dc:creator>
    <dc:date>2022-05-06T00:04:54Z</dc:date>
    <item>
      <title>error in set col value with JSL formula</title>
      <link>https://community.jmp.com/t5/Discussions/error-in-set-col-value-with-JSL-formula/m-p/484568#M72875</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$SAMPLE_DATA/Big Class.jmp" ); 
dt=(Data Table( "Big Class" ) &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Grouping Columns( :sex ) ),
		Row Table( Analysis Columns( :height ), Statistics( Mean ) )
	)
)) &amp;lt;&amp;lt; Make Into Data Table;
dt&amp;lt;&amp;lt;New Column ("total", numeric, continious);
:total&amp;lt;&amp;lt;formula(:F+:M);// this line works by itself but causes error in script&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;:total&amp;lt;&amp;lt;formula(:F+:M);// this line works by itself after the script but causes error in the script?&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:58:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/error-in-set-col-value-with-JSL-formula/m-p/484568#M72875</guid>
      <dc:creator>ScatterChart190</dc:creator>
      <dc:date>2023-06-09T16:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: error in set col value with JSL formula</title>
      <link>https://community.jmp.com/t5/Discussions/error-in-set-col-value-with-JSL-formula/m-p/484590#M72876</link>
      <description>&lt;P&gt;I personally try to avoid any auto-scoping in JSL, especially when it comes to column names.&amp;nbsp; If you explicitly scope &lt;CODE class=" language-jsl"&gt;:TOTAL&lt;/CODE&gt; to &lt;CODE class=" language-jsl"&gt;DT:TOTAL&lt;/CODE&gt; then this works.&amp;nbsp; The reason for the failure is because &lt;CODE class=" language-jsl"&gt;dt&lt;/CODE&gt; is not the current data table, and the current data table does not have a &lt;CODE class=" language-jsl"&gt;:TOTAL&lt;/CODE&gt; column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$SAMPLE_DATA/Big Class.jmp" ); 
dt=(Data Table( "Big Class" ) &amp;lt;&amp;lt; Tabulate(
	Add Table(
		Column Table( Grouping Columns( :sex ) ),
		Row Table( Analysis Columns( :height ), Statistics( Mean ) )
	)
)) &amp;lt;&amp;lt; Make Into Data Table;
dt&amp;lt;&amp;lt;New Column ("total", numeric, continious);
dt:total&amp;lt;&amp;lt;formula(:F+:M);// this line works by itself but causes error in script&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 21:01:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/error-in-set-col-value-with-JSL-formula/m-p/484590#M72876</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2022-05-05T21:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: error in set col value with JSL formula</title>
      <link>https://community.jmp.com/t5/Discussions/error-in-set-col-value-with-JSL-formula/m-p/484654#M72880</link>
      <description>&lt;P&gt;Thanks, and it also explains why the last line "magically" works, when I switch to the tabulate table :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 00:04:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/error-in-set-col-value-with-JSL-formula/m-p/484654#M72880</guid>
      <dc:creator>ScatterChart190</dc:creator>
      <dc:date>2022-05-06T00:04:54Z</dc:date>
    </item>
  </channel>
</rss>

