<?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 In JSL, how to use a column name using a dynamic variable name list? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/In-JSL-how-to-use-a-column-name-using-a-dynamic-variable-name/m-p/5893#M5892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, I have a table dt with n columns, X1, X2, ..., Xn. I need to draw distributions for EACH column, X(i), like below (repeat n times): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distribution(&lt;/P&gt;&lt;P&gt; Continuous Distribution(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Column( :X1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Horizontal Layout( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Vertical( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Normal Quantile Plot( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Capability Analysis( LSL( 4 ), USL( 22 ), Target( 13 ) )&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use a loop to do this? I tried the following, but it is not successful :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColNameList = dt &amp;lt;&amp;lt; Get Column Names(Nominal, String); &lt;/P&gt;&lt;P&gt;for (k=1, k&amp;lt;=n, k++,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distribution(&lt;/P&gt;&lt;P&gt; Continuous Distribution(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Column( :ColNameList&lt;K&gt;),&lt;/K&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Horizontal Layout( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Vertical( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Normal Quantile Plot( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Capability Analysis( LSL( 4 ), USL( 22 ), Target( 13 ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any good suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 23:49:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-05T23:49:28Z</dc:date>
    <item>
      <title>In JSL, how to use a column name using a dynamic variable name list?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-how-to-use-a-column-name-using-a-dynamic-variable-name/m-p/5893#M5892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, I have a table dt with n columns, X1, X2, ..., Xn. I need to draw distributions for EACH column, X(i), like below (repeat n times): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distribution(&lt;/P&gt;&lt;P&gt; Continuous Distribution(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Column( :X1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Horizontal Layout( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Vertical( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Normal Quantile Plot( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Capability Analysis( LSL( 4 ), USL( 22 ), Target( 13 ) )&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I use a loop to do this? I tried the following, but it is not successful :-(.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColNameList = dt &amp;lt;&amp;lt; Get Column Names(Nominal, String); &lt;/P&gt;&lt;P&gt;for (k=1, k&amp;lt;=n, k++,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Distribution(&lt;/P&gt;&lt;P&gt; Continuous Distribution(&lt;/P&gt;&lt;P&gt;&amp;nbsp; Column( :ColNameList&lt;K&gt;),&lt;/K&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Horizontal Layout( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Vertical( 0 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Normal Quantile Plot( 1 ),&lt;/P&gt;&lt;P&gt;&amp;nbsp; Capability Analysis( LSL( 4 ), USL( 22 ), Target( 13 ) )&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt; )&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any good suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 23:49:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-how-to-use-a-column-name-using-a-dynamic-variable-name/m-p/5893#M5892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-05T23:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: In JSL, how to use a column name using a dynamic variable name list?</title>
      <link>https://community.jmp.com/t5/Discussions/In-JSL-how-to-use-a-column-name-using-a-dynamic-variable-name/m-p/5894#M5893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure why you specify Nominal in &amp;lt;&amp;lt;get column names(). I would think that numeric and continuous variables are required In this context. &lt;/P&gt;&lt;P&gt;This should work:&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #2800e1;"&gt;&lt;SPAN style="color: #000000;"&gt;dt &lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Current Data Table&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #4c910b;"&gt;&lt;SPAN style="color: #000000;"&gt;ColNameList &lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; dt &lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; Get Column Names&lt;STRONG&gt;(&lt;/STRONG&gt; continuous &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;//Capability do not work well with nominal columns&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;SPAN style="color: #2800e1;"&gt;For&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; k &lt;SPAN style="color: #160091;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; k &lt;SPAN style="color: #160091;"&gt;&amp;lt;=&lt;/SPAN&gt; &lt;SPAN style="color: #2800e1;"&gt;N Items&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; ColNameList &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; k&lt;SPAN style="color: #160091;"&gt;++,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Distribution&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Continuous Distribution&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;SPAN style="color: #2800e1;"&gt;Column&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; ColNameList&lt;STRONG&gt;[&lt;/STRONG&gt;k&lt;STRONG&gt;]&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Horizontal Layout&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Vertical&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Normal Quantile Plot&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; Capability Analysis&lt;STRONG&gt;(&lt;/STRONG&gt; LSL&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; USL&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;22&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;,&lt;/SPAN&gt; Target&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;SPAN style="color: #509092;"&gt;&lt;STRONG&gt;13&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;)&lt;/STRONG&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #160091;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 11:12:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/In-JSL-how-to-use-a-column-name-using-a-dynamic-variable-name/m-p/5894#M5893</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2012-11-06T11:12:07Z</dc:date>
    </item>
  </channel>
</rss>

