<?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: Moving new column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/11125#M10686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I found that should be &lt;/P&gt;&lt;P&gt;dt=Current Data Table();&lt;/P&gt;&lt;P&gt;dt&amp;lt;&amp;lt;move selected columns({"example"},After("sex"));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2015 22:48:35 GMT</pubDate>
    <dc:creator>bernie426</dc:creator>
    <dc:date>2015-02-26T22:48:35Z</dc:date>
    <item>
      <title>Moving new column</title>
      <link>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/11124#M10685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an example on the Big Class.jmp, I will like to move the created new column after age column. &lt;/P&gt;&lt;P&gt;As the script below, the move selected columns script does not work, the new column still created at the end. &lt;/P&gt;&lt;P&gt;Can anyone help this out? Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Names Default To Here( 1 );&lt;/P&gt;&lt;P&gt;Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;/P&gt;&lt;P&gt;New Column( "example", Numeric, Continuous, Width( 5 ), &amp;lt;&amp;lt;Set Each Value( 100 ) );&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;Move Selected Columns({"example"},After("age"))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 22:38:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/11124#M10685</guid>
      <dc:creator>bernie426</dc:creator>
      <dc:date>2015-02-26T22:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Moving new column</title>
      <link>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/11125#M10686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I found that should be &lt;/P&gt;&lt;P&gt;dt=Current Data Table();&lt;/P&gt;&lt;P&gt;dt&amp;lt;&amp;lt;move selected columns({"example"},After("sex"));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 22:48:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/11125#M10686</guid>
      <dc:creator>bernie426</dc:creator>
      <dc:date>2015-02-26T22:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Moving new column</title>
      <link>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/11126#M10687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be done by a simple procedure. In your data table, go to "Cols" and select "Reorder Columns." Then, you can change the order of the column as you want. Wish it helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2015 04:44:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/11126#M10687</guid>
      <dc:creator>syl022</dc:creator>
      <dc:date>2015-03-15T04:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Moving new column</title>
      <link>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/37118#M21793</link>
      <description>&lt;P&gt;It appears not to like sending the message to the assumed current data table, your code was not specifying it. It works if you specify the data table as below. I am working on something similar, new column that I want to replace the old column in a large number of columns for the user, so it is in the same location that they are used to seeing it. My text string goes where "example" should go, but now getting the Move Column dialog pop-up. At least I know the "After" should work. Using JMP13.0.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Names Default To Here&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;1&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; );&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Open&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"$SAMPLE_DATA/Big Class.jmp"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; );&lt;/FONT&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;dt = &lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Current Data Table&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;New Column&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"example"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;, Numeric, Continuous, Width( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;5&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; ), &amp;lt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas"&gt;Set Each Value&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;100&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; ) );&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;dt &amp;lt;&amp;lt; &lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas"&gt;Move Selected Columns&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;({&lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"example"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;},After(&lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"sex"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 21:38:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/37118#M21793</guid>
      <dc:creator>Vball247</dc:creator>
      <dc:date>2017-03-13T21:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Moving new column</title>
      <link>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/37120#M21794</link>
      <description>&lt;P&gt;Here's my problem. If I use a variable for the After("name") it goes to the dialog:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Names Default To Here&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;1&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; );&lt;/FONT&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Open&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"$SAMPLE_DATA/Big Class.jmp"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; );　&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;dt = &lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Current Data Table&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;New Column&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"example"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;, Numeric, Continuous, Width( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;5&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; ), &amp;lt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas"&gt;Set Each Value&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;100&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; ) );&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;myAfter = &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"sex"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;dt &amp;lt;&amp;lt; &lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas"&gt;Move Selected Columns&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;({&lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"example"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;},After(myAfter));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;If I evaluate&amp;nbsp;by using After(Eval(myAfter))&amp;nbsp;it works. If you have a variable in the list, also has to Eval first.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Names Default To Here&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;1&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; );&lt;/FONT&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Open&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"$SAMPLE_DATA/Big Class.jmp"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; );　&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;dt = &lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Current Data Table&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;();&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;New Column&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"example"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;, Numeric, Continuous, Width( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;5&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; ), &amp;lt;&amp;lt;&lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas"&gt;Set Each Value&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;( &lt;/FONT&gt;&lt;FONT color="#008080" face="Consolas"&gt;100&lt;/FONT&gt;&lt;FONT face="Consolas"&gt; ) );&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;myAfter = &lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"sex"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas"&gt;dt &amp;lt;&amp;lt; &lt;/FONT&gt;&lt;FONT color="#000080" face="Consolas"&gt;Move Selected Columns&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;({&lt;/FONT&gt;&lt;FONT color="#800080" face="Consolas"&gt;"example"&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;},After(&lt;/FONT&gt;&lt;FONT color="#0000dd" face="Consolas"&gt;Eval&lt;/FONT&gt;&lt;FONT face="Consolas"&gt;(myAfter)));&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 21:57:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/37120#M21794</guid>
      <dc:creator>Vball247</dc:creator>
      <dc:date>2017-03-13T21:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Moving new column</title>
      <link>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/37121#M21795</link>
      <description>&lt;P&gt;&lt;EM&gt;Eval()&lt;/EM&gt;&amp;nbsp;would not be&amp;nbsp;not needed if assigning&amp;nbsp;a &lt;EM&gt;Column()&lt;/EM&gt;&amp;nbsp;instead of a string to&amp;nbsp;&lt;EM&gt;myAfter&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
myAfter = Column(dt, "sex");
dt &amp;lt;&amp;lt; New Column("example", &amp;lt;&amp;lt;Set Each Value(100), &amp;lt;&amp;lt;Set Selected(1));
dt &amp;lt;&amp;lt; Move Selected Columns(After(myAfter));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Mar 2017 22:55:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/37121#M21795</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2017-03-13T22:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Moving new column</title>
      <link>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/37148#M21812</link>
      <description>&lt;P&gt;Thanks, good to know, this helps because I do pull a list of user selected columns in my script using &amp;lt;&amp;lt; Get Selected Columns. Was going off the syntax guide, where it seems that After("name") acts like Column(dt,"name"). I'm still confused by a list of columns vs. a list of column names vs. a list of character strings of the column names and where they can be used to reference a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;You can also move columns without first selecting them in the data table by using the following syntax.&lt;/P&gt;&lt;P align="left"&gt;dt &amp;lt;&amp;lt; Move Selected Columns( {"name"}, To First );&lt;/P&gt;&lt;P align="left"&gt;dt &amp;lt;&amp;lt; Move Selected Columns( {"name"}, To Last );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Move Selected Columns( {"name"}, After( "name" ) );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 15:10:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Moving-new-column/m-p/37148#M21812</guid>
      <dc:creator>Vball247</dc:creator>
      <dc:date>2017-03-14T15:10:40Z</dc:date>
    </item>
  </channel>
</rss>

