<?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 Identify Unique Values in a Column from a Data Table (to a Scripting Newbie) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381382#M63189</link>
    <description>&lt;P&gt;Here is at least two ways to get unique values; Summarize and Associative Array with get keys:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
Summarize(dt, uniqNames = by(:name));
Show(uniqNames);

aa_uniqNames = Associative Array(Column(dt, "name")) &amp;lt;&amp;lt; Get keys;
show(aa_uniqNames);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also take a look at the following sources for scripting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Directly from JMP take a look under Help/Scripting Index (search for Summarize for example)&lt;/P&gt;&lt;P&gt;2. &lt;A href="https://support.sas.com/documentation/onlinedoc/jmp/15.1/Scripting-Guide.pdf" target="_self"&gt;Scripting Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. &lt;A href="https://www.jmp.com/support/help/en/16.0/index.shtml#page/jmp/what-jsl-can-do-for-you.shtml#" target="_self"&gt;JMP Help, Scripting Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Apr 2021 17:13:39 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-04-30T17:13:39Z</dc:date>
    <item>
      <title>How to Identify Unique Values in a Column from a Data Table (to a Scripting Newbie)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381364#M63187</link>
      <description>&lt;P&gt;Assuming I am familiar with programming languages in general, but not the syntax of JMP/JSL specifically, please understand that when I looked up&amp;nbsp;&lt;LI-MESSAGE title="JSL: get unique values of a data table column" uid="985" url="https://community.jmp.com/t5/Discussions/JSL-get-unique-values-of-a-data-table-column/m-p/985#U985" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;and&amp;nbsp;&lt;LI-MESSAGE title="Get a list of the unique values in a column, matrix, or list" uid="51256" url="https://community.jmp.com/t5/JSL-Cookbook/Get-a-list-of-the-unique-values-in-a-column-matrix-or-list/m-p/51256#U51256" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;none of the solutions worked for me when I try to find a summary of the unique values in a column scriptorially (not via Recode). The reason for doing it scriptorially is I would like to feed the output to other input funnels in another portion of the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code (anonymized and hopefully without typos):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "data file" );
//show(summarize(dt=by("column of interest")));
//dt &amp;lt;&amp;lt; Summary(Group(:column of interest), Freq("None"), Weight("None"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The lines which are commented out do not seem to work for me. I don't even know if I am importing the data correctly, to be honest. "data file" is a .jmp file. How would I know? Would it open up? It doesn't seem to be doing that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pardon if this is a double post but I really appreciate the understanding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:29:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381364#M63187</guid>
      <dc:creator>mostarr</dc:creator>
      <dc:date>2023-06-10T23:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify Unique Values in a Column from a Data Table (to a Scripting Newbie)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381382#M63189</link>
      <description>&lt;P&gt;Here is at least two ways to get unique values; Summarize and Associative Array with get keys:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
Summarize(dt, uniqNames = by(:name));
Show(uniqNames);

aa_uniqNames = Associative Array(Column(dt, "name")) &amp;lt;&amp;lt; Get keys;
show(aa_uniqNames);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also take a look at the following sources for scripting:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Directly from JMP take a look under Help/Scripting Index (search for Summarize for example)&lt;/P&gt;&lt;P&gt;2. &lt;A href="https://support.sas.com/documentation/onlinedoc/jmp/15.1/Scripting-Guide.pdf" target="_self"&gt;Scripting Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. &lt;A href="https://www.jmp.com/support/help/en/16.0/index.shtml#page/jmp/what-jsl-can-do-for-you.shtml#" target="_self"&gt;JMP Help, Scripting Guide&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 17:13:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381382#M63189</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-04-30T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify Unique Values in a Column from a Data Table (to a Scripting Newbie)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381412#M63192</link>
      <description>Where will uniqNames be shown?</description>
      <pubDate>Fri, 30 Apr 2021 17:43:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381412#M63192</guid>
      <dc:creator>mostarr</dc:creator>
      <dc:date>2021-04-30T17:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify Unique Values in a Column from a Data Table (to a Scripting Newbie)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381419#M63195</link>
      <description>&lt;P&gt;From Scripting Index:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1619804851279.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32498i10AA87D7F2D8C159/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1619804851279.png" alt="jthi_0-1619804851279.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;With Summarize the results are saved in variables with the names specified.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see them in Log window: View/Log (Ctrl+Shift+L shortcut) or right click on script editor and enable Show Embedded Log (I suggest enabling this from preferences to be shown always).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Embedded log:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1619805012193.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/32500iB3A12FBC431360AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1619805012193.png" alt="jthi_2-1619805012193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 17:50:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381419#M63195</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-04-30T17:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Identify Unique Values in a Column from a Data Table (to a Scripting Newbie)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381422#M63196</link>
      <description>Thanks, that works perfectly.</description>
      <pubDate>Fri, 30 Apr 2021 17:58:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Identify-Unique-Values-in-a-Column-from-a-Data-Table-to-a/m-p/381422#M63196</guid>
      <dc:creator>mostarr</dc:creator>
      <dc:date>2021-04-30T17:58:37Z</dc:date>
    </item>
  </channel>
</rss>

