<?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: Converting Between Data Tables and Associative Arrays in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/54443#M30769</link>
    <description>&lt;P&gt;Check the scripting index (Help &amp;gt; Scripting Index). &amp;nbsp;The AA will accept a matrix or a list as an input when you create it. &amp;nbsp;So, the easiest way would be to get your Key column as a list, your value column as a list, and pass those to the AA command as the Keys and Values. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to get multiple columns into your Value for a given Key you can do that too. &amp;nbsp;There are some great examples in the scripting guide (Help &amp;gt; Books &amp;gt; JMP Scripting Guide). &amp;nbsp;You can also look at the code I use here:&amp;nbsp;&lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwiG_OWk4qDaAhWFY98KHQYiC3cQFggpMAA&amp;amp;url=https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FTotal-Recall-A-new-strategy-for-Recall-support-in-JMP%2Fba-p%2F49330&amp;amp;usg=AOvVaw3okZF5bruKU7gf1AW2FDBj" target="_blank"&gt;Total Recall: A new strategy for Recall support in JMP applications&lt;/A&gt;&amp;nbsp;for some examples on how I work with AA's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 13:53:44 GMT</pubDate>
    <dc:creator>MikeD_Anderson</dc:creator>
    <dc:date>2018-04-04T13:53:44Z</dc:date>
    <item>
      <title>Converting Between Data Tables and Associative Arrays</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/54438#M30764</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a simple way to convert a data table to an associative array?&amp;nbsp; I'm trying to pass the associative array to an external API for analysis, and then getting the&amp;nbsp;results back into JMP as a data table afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Howard&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:25:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/54438#M30764</guid>
      <dc:creator>hyue</dc:creator>
      <dc:date>2018-04-04T12:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Between Data Tables and Associative Arrays</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/54443#M30769</link>
      <description>&lt;P&gt;Check the scripting index (Help &amp;gt; Scripting Index). &amp;nbsp;The AA will accept a matrix or a list as an input when you create it. &amp;nbsp;So, the easiest way would be to get your Key column as a list, your value column as a list, and pass those to the AA command as the Keys and Values. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to get multiple columns into your Value for a given Key you can do that too. &amp;nbsp;There are some great examples in the scripting guide (Help &amp;gt; Books &amp;gt; JMP Scripting Guide). &amp;nbsp;You can also look at the code I use here:&amp;nbsp;&lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=0ahUKEwiG_OWk4qDaAhWFY98KHQYiC3cQFggpMAA&amp;amp;url=https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FJMPer-Cable%2FTotal-Recall-A-new-strategy-for-Recall-support-in-JMP%2Fba-p%2F49330&amp;amp;usg=AOvVaw3okZF5bruKU7gf1AW2FDBj" target="_blank"&gt;Total Recall: A new strategy for Recall support in JMP applications&lt;/A&gt;&amp;nbsp;for some examples on how I work with AA's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;M&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 13:53:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/54443#M30769</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2018-04-04T13:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Between Data Tables and Associative Arrays</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/54526#M30832</link>
      <description>&lt;P&gt;Thanks, M.&amp;nbsp; That was a good idea and I have implemented it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Howard&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2018 09:10:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/54526#M30832</guid>
      <dc:creator>hyue</dc:creator>
      <dc:date>2018-04-06T09:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Between Data Tables and Associative Arrays</title>
      <link>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/943916#M109596</link>
      <description>&lt;P&gt;I recently needed to convert datatable to associative array. Below is what I did&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/********************************************** table to associative array ***************************************************/
dt = Current Data Table();
pe_steps = Associative Array();
ForEach( {i}, 1::ncols(dt),	pe_steps[Column(dt,i) &amp;lt;&amp;lt; get name] = Column(dt,i) &amp;lt;&amp;lt; get values );
Show( pe_steps );
/********************************************** table to associative array ***************************************************/&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Apr 2026 18:24:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Converting-Between-Data-Tables-and-Associative-Arrays/m-p/943916#M109596</guid>
      <dc:creator>Desert_Rose</dc:creator>
      <dc:date>2026-04-23T18:24:14Z</dc:date>
    </item>
  </channel>
</rss>

