<?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 How can use JSL to loop column names into different variables? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-loop-column-names-into-different-variables/m-p/669170#M85733</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
For( i = 1, i &amp;lt;= N Col( dt ), i++,
	ca = Column( i ) &amp;lt;&amp;lt; Get Name;
	Eval( Parse( "c" || Char( i ) || "=" || ca || "" ) );//?
);
a = c1;
b = c2;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 18 Aug 2023 14:27:21 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2023-08-18T14:27:21Z</dc:date>
    <item>
      <title>How can use JSL to loop column names into different variables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-loop-column-names-into-different-variables/m-p/669170#M85733</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
For( i = 1, i &amp;lt;= N Col( dt ), i++,
	ca = Column( i ) &amp;lt;&amp;lt; Get Name;
	Eval( Parse( "c" || Char( i ) || "=" || ca || "" ) );//?
);
a = c1;
b = c2;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2023 14:27:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-loop-column-names-into-different-variables/m-p/669170#M85733</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-08-18T14:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can use JSL to loop column names into different variables?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-loop-column-names-into-different-variables/m-p/669328#M85747</link>
      <description>&lt;P&gt;Usually something like this is a very bad idea and its much better idea to use something like list or associative array, but if you really want to do something like this you are missing quotes if you want to get the names&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
Delete Symbols();

dt = Open("$SAMPLE_DATA/Big Class.jmp");
For(i = 1, i &amp;lt;= N Col(dt), i++,
	ca = Column(i) &amp;lt;&amp;lt; Get Name;
	Eval(Parse("c" || Char(i) || "= \!"" || ca || "\!""));//?
);
Show Symbols();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2023 17:20:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-use-JSL-to-loop-column-names-into-different-variables/m-p/669328#M85747</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-08-18T17:20:00Z</dc:date>
    </item>
  </channel>
</rss>

