<?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: Move column to first using JSL script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Move-column-to-first-using-JSL-script/m-p/210808#M42197</link>
    <description>&lt;P&gt;The JSL documentation in both the Scripting Index and in the Scripting Guide is confusing......I would even say it is wrong.&amp;nbsp; However, the following JSL shows a couple of correct methods to do what you want to do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

:weight &amp;lt;&amp;lt; set selected(1);

dt &amp;lt;&amp;lt; move selected columns( To First );

// Or you can use this form
dt2=open("$SAMPLE_DATA/Trial1.jmp");

dt2 &amp;lt;&amp;lt; move selected columns( {"yield"}, To First);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 May 2019 09:16:46 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-05-28T09:16:46Z</dc:date>
    <item>
      <title>Move column to first using JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Move-column-to-first-using-JSL-script/m-p/210798#M42196</link>
      <description>&lt;P&gt;Hi JMP community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I seem to have a simple question.&lt;/P&gt;&lt;P&gt;I want to move a specific column to the first position using JSL script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started withselecting it&lt;/P&gt;&lt;P&gt;:"That's my column" &amp;lt;&amp;lt; set selected (1) ; /*seemed OK*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, ...&lt;/P&gt;&lt;P&gt;move selected column ( (:"That's my column"), to first) ;&lt;/P&gt;&lt;P&gt;...just doesn't work. Could you help me solve this one?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 08:49:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Move-column-to-first-using-JSL-script/m-p/210798#M42196</guid>
      <dc:creator>Newbie2Jumpie</dc:creator>
      <dc:date>2019-05-28T08:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Move column to first using JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Move-column-to-first-using-JSL-script/m-p/210808#M42197</link>
      <description>&lt;P&gt;The JSL documentation in both the Scripting Index and in the Scripting Guide is confusing......I would even say it is wrong.&amp;nbsp; However, the following JSL shows a couple of correct methods to do what you want to do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");

:weight &amp;lt;&amp;lt; set selected(1);

dt &amp;lt;&amp;lt; move selected columns( To First );

// Or you can use this form
dt2=open("$SAMPLE_DATA/Trial1.jmp");

dt2 &amp;lt;&amp;lt; move selected columns( {"yield"}, To First);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 May 2019 09:16:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Move-column-to-first-using-JSL-script/m-p/210808#M42197</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-05-28T09:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move column to first using JSL script</title>
      <link>https://community.jmp.com/t5/Discussions/Move-column-to-first-using-JSL-script/m-p/210843#M42216</link>
      <description>Hi txnelson&lt;BR /&gt;You saved my day. I'll check the syntax solutions first thing tomorrow.&lt;BR /&gt;Until then: Thanks a lot!&lt;BR /&gt;Newbie2&lt;BR /&gt;</description>
      <pubDate>Tue, 28 May 2019 15:51:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Move-column-to-first-using-JSL-script/m-p/210843#M42216</guid>
      <dc:creator>Newbie2Jumpie</dc:creator>
      <dc:date>2019-05-28T15:51:48Z</dc:date>
    </item>
  </channel>
</rss>

