<?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 Get column  Property and store as list in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/m-p/50885#M28913</link>
    <description>&lt;P&gt;I have a large data set and each column has spec limit&amp;nbsp; i am looping through the column names and trying to get spec Limit and storing them as a list. But somehow script is not storing the values of spec Limits in a list and giving only values for last iteration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help on how to store spec values as list ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data_cols = dt1 &amp;lt;&amp;lt; Get Column Names (continuous);&lt;/P&gt;&lt;P&gt;lsl= {};&lt;/P&gt;&lt;P&gt;usl={};&lt;/P&gt;&lt;P&gt;for (m =1,m&amp;lt;=NItems(data_cols),m++,&lt;/P&gt;&lt;P&gt;specs = Column(dt1,char(data_cols[m])) &amp;lt;&amp;lt; get property ("Spec Limits");&lt;/P&gt;&lt;P&gt;lsl= specs["LSL"];&lt;BR /&gt;usl = specs ["USL"];&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 00:54:47 GMT</pubDate>
    <dc:creator>RK1</dc:creator>
    <dc:date>2018-02-08T00:54:47Z</dc:date>
    <item>
      <title>Get column  Property and store as list</title>
      <link>https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/m-p/50885#M28913</link>
      <description>&lt;P&gt;I have a large data set and each column has spec limit&amp;nbsp; i am looping through the column names and trying to get spec Limit and storing them as a list. But somehow script is not storing the values of spec Limits in a list and giving only values for last iteration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help on how to store spec values as list ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data_cols = dt1 &amp;lt;&amp;lt; Get Column Names (continuous);&lt;/P&gt;&lt;P&gt;lsl= {};&lt;/P&gt;&lt;P&gt;usl={};&lt;/P&gt;&lt;P&gt;for (m =1,m&amp;lt;=NItems(data_cols),m++,&lt;/P&gt;&lt;P&gt;specs = Column(dt1,char(data_cols[m])) &amp;lt;&amp;lt; get property ("Spec Limits");&lt;/P&gt;&lt;P&gt;lsl= specs["LSL"];&lt;BR /&gt;usl = specs ["USL"];&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 00:54:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/m-p/50885#M28913</guid>
      <dc:creator>RK1</dc:creator>
      <dc:date>2018-02-08T00:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Get column  Property and store as list</title>
      <link>https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/m-p/50888#M28915</link>
      <description>&lt;P&gt;Your code just kept replacing the complete value of the lists, LSL and USL;&amp;nbsp; See below for solution&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = Current Data Table();

data_cols = dt1 &amp;lt;&amp;lt; Get Column Names( continuous );

lsl = {};

usl = {};

For( m = 1, m &amp;lt;= N Items( data_cols ), m++, 

	specs = Column( dt1, Char( data_cols[m] ) ) &amp;lt;&amp;lt; get property( "Spec Limits" );

	lsl[m] = specs["LSL"];
	usl[m] = specs["USL"];

);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Feb 2018 03:08:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/m-p/50888#M28915</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-08T03:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get column  Property and store as list</title>
      <link>https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/m-p/50937#M28936</link>
      <description>&lt;P&gt;It worked, Thanks for quick Reply.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 17:26:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-column-Property-and-store-as-list/m-p/50937#M28936</guid>
      <dc:creator>RK1</dc:creator>
      <dc:date>2018-02-08T17:26:57Z</dc:date>
    </item>
  </channel>
</rss>

