<?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: JMP Pro 16.1 &amp;gt; JSL &amp;gt; Col Maximum (:DATA, :BY_CAT) Returns an error: Bug or Syntax Error? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Pro-16-1-gt-JSL-gt-Col-Maximum-DATA-BY-CAT-Returns-an-error/m-p/657951#M84729</link>
    <description>&lt;P&gt;UPDATE:&lt;/P&gt;
&lt;P&gt;For some reason, when using the Col Maximum with a "By Var", I needed to specify that the column is a reference to a column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;max_y = col maximum (as column (YCOL), column (dt, "TIME_POINT"))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SOLVED&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 04:28:17 GMT</pubDate>
    <dc:creator>Thierry_S</dc:creator>
    <dc:date>2023-07-13T04:28:17Z</dc:date>
    <item>
      <title>JMP Pro 16.1 &gt; JSL &gt; Col Maximum (:DATA, :BY_CAT) Returns an error: Bug or Syntax Error?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Pro-16-1-gt-JSL-gt-Col-Maximum-DATA-BY-CAT-Returns-an-error/m-p/657950#M84728</link>
      <description>&lt;P&gt;Hi JMP Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JMP Pro 16.1, Windows 10 Professional.&lt;/P&gt;
&lt;P&gt;I encountered&amp;nbsp;an odd behavior in a simple JSL script I am developing. In the script snippet below, the "By Var" column is not recognized as valid (see error message below). I confirmed that the simpler formula "max_y = col maximum (YCOL)" works fine. Hence, I believe that the issue is with the "By Var" portion of the formula.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;For (i = 1, i &amp;lt;= N Items (col_ref), i++,
	
			YCOL = Column (dt, col_ref [i]);
			
			max_y = col maximum (YCOL, column (dt, "TIME_POINT"));
			show (max_y)
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Thierry_S_0-1689221718939.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/54617i8C3665832C820324/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Thierry_S_0-1689221718939.png" alt="Thierry_S_0-1689221718939.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Am I missing a simple syntax component, or is it a bug?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: I cannot easily share the source data table or the complete script because of confidentiality issues.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;TS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 04:20:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Pro-16-1-gt-JSL-gt-Col-Maximum-DATA-BY-CAT-Returns-an-error/m-p/657950#M84728</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-07-13T04:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Pro 16.1 &gt; JSL &gt; Col Maximum (:DATA, :BY_CAT) Returns an error: Bug or Syntax Error?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Pro-16-1-gt-JSL-gt-Col-Maximum-DATA-BY-CAT-Returns-an-error/m-p/657951#M84729</link>
      <description>&lt;P&gt;UPDATE:&lt;/P&gt;
&lt;P&gt;For some reason, when using the Col Maximum with a "By Var", I needed to specify that the column is a reference to a column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;max_y = col maximum (as column (YCOL), column (dt, "TIME_POINT"))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SOLVED&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 04:28:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Pro-16-1-gt-JSL-gt-Col-Maximum-DATA-BY-CAT-Returns-an-error/m-p/657951#M84729</guid>
      <dc:creator>Thierry_S</dc:creator>
      <dc:date>2023-07-13T04:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Pro 16.1 &gt; JSL &gt; Col Maximum (:DATA, :BY_CAT) Returns an error: Bug or Syntax Error?</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Pro-16-1-gt-JSL-gt-Col-Maximum-DATA-BY-CAT-Returns-an-error/m-p/658086#M84733</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Does the&lt;/FONT&gt; Col Maximum&lt;/FONT&gt; outside of a Column formula work?&lt;/P&gt;&lt;P&gt;alternatively, you could try&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Summarize(by, Max(...))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 14:06:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Pro-16-1-gt-JSL-gt-Col-Maximum-DATA-BY-CAT-Returns-an-error/m-p/658086#M84733</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-07-13T14:06:52Z</dc:date>
    </item>
  </channel>
</rss>

