<?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 Copying Columns Between Data Tables Without Altering the Main Data Table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Copying-Columns-Between-Data-Tables-Without-Altering-the-Main/m-p/875791#M103911</link>
    <description>&lt;P&gt;&lt;SPAN&gt;In the JSL below, this allows for the copying of columns between different data tables. However, I actually don't want to change the current main data table with `Current Data Table()`. Is there a way to modify it so that I can copy columns to another specified data table without altering the current main data table?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );

dt &amp;lt;&amp;lt; New Formula Column(
	Operation( Category( "Combine" ), "Ratio" ),
	Columns( :height, :weight )
);

script = Column(dt,"height/weight") &amp;lt;&amp;lt; get script;

Current data table(dt2);
script;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 23 May 2025 09:00:13 GMT</pubDate>
    <dc:creator>BabyDoragon</dc:creator>
    <dc:date>2025-05-23T09:00:13Z</dc:date>
    <item>
      <title>Copying Columns Between Data Tables Without Altering the Main Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Copying-Columns-Between-Data-Tables-Without-Altering-the-Main/m-p/875791#M103911</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In the JSL below, this allows for the copying of columns between different data tables. However, I actually don't want to change the current main data table with `Current Data Table()`. Is there a way to modify it so that I can copy columns to another specified data table without altering the current main data table?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );

dt &amp;lt;&amp;lt; New Formula Column(
	Operation( Category( "Combine" ), "Ratio" ),
	Columns( :height, :weight )
);

script = Column(dt,"height/weight") &amp;lt;&amp;lt; get script;

Current data table(dt2);
script;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 May 2025 09:00:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Copying-Columns-Between-Data-Tables-Without-Altering-the-Main/m-p/875791#M103911</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-05-23T09:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Copying Columns Between Data Tables Without Altering the Main Data Table</title>
      <link>https://community.jmp.com/t5/Discussions/Copying-Columns-Between-Data-Tables-Without-Altering-the-Main/m-p/875801#M103912</link>
      <description>&lt;P&gt;You can for example use Send()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt2 = Open( "$SAMPLE_DATA/Big Class Families.jmp" );

dt &amp;lt;&amp;lt; New Formula Column(
	Operation( Category( "Combine" ), "Ratio" ),
	Columns( :height, :weight )
);

script = Column(dt,"height/weight") &amp;lt;&amp;lt; get script;

Eval(EvalExpr(Send(dt2, Expr(Name Expr(script)))));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 May 2025 09:09:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Copying-Columns-Between-Data-Tables-Without-Altering-the-Main/m-p/875801#M103912</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-05-23T09:09:56Z</dc:date>
    </item>
  </channel>
</rss>

