<?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 JSL to select cells to copy to another table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/39596#M23168</link>
    <description>&lt;P&gt;hi everyone, sorry to jmp in on this conversation. I am new to JSl scripting.&lt;BR /&gt;I have table with thousands of rows. I need to be able to select a group of cells in one column, so I could copy it into another table. for example for Column: "Test3 (VOLTS)" only 1000 rows; I need to copy cells from row 50 thru row 200 using JSL code.&lt;BR /&gt;Thanks SAM&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 12:38:44 GMT</pubDate>
    <dc:creator>SamH</dc:creator>
    <dc:date>2017-05-25T12:38:44Z</dc:date>
    <item>
      <title>JSL to select cells to copy to another table</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/39596#M23168</link>
      <description>&lt;P&gt;hi everyone, sorry to jmp in on this conversation. I am new to JSl scripting.&lt;BR /&gt;I have table with thousands of rows. I need to be able to select a group of cells in one column, so I could copy it into another table. for example for Column: "Test3 (VOLTS)" only 1000 rows; I need to copy cells from row 50 thru row 200 using JSL code.&lt;BR /&gt;Thanks SAM&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:38:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/39596#M23168</guid>
      <dc:creator>SamH</dc:creator>
      <dc:date>2017-05-25T12:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/39603#M23169</link>
      <description>&lt;P&gt;Please find one way to do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
 // Get some data
 dt = Open("$SAMPLE_DATA/Big Class.jmp");
 // Suppose we want the values in rows 10 to 32 in the column containing 'weight'
 vals = Column(dt, "weight")[10::32];
 // Put these in a new table
 dt2 = NewTable("Result", NewColumn("weight", Numeric, Continuous, Values(vals)));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 25 May 2017 07:16:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/39603#M23169</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-05-25T07:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSL to select cells to copy to another table</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/39620#M23172</link>
      <description>&lt;P&gt;SamH,&lt;/P&gt;
&lt;P&gt;I am looking to see if there is an issue with the Discussion Forum. &amp;nbsp;Yesterday, you entered in a discussion question "&lt;A id="link_35" class="page-link lia-link-navigation lia-custom-event" href="https://community.jmp.com/t5/Discussions/Select-a-group-of-cells-in-a-column/td-p/39595/jump-to/first-unread-message" target="_blank"&gt;Select a group of cells in a column&lt;/A&gt;" which is virtually identical to this discussion. &amp;nbsp;Did yesterday's item not get displayed in the forum? &amp;nbsp;Did you forget that you had already entered in the discussion item?(I certainly have done that myself)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I said, I just want to make sure there isn't a problem, where your item from yesterday didn't get processed properly.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 13:41:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/39620#M23172</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-05-25T13:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/42918#M24886</link>
      <description>Thanks for this nice answer Jan. How would the code look like if I would have liked to copy the entire column include its name? Without having to name the new column. Something like: copy column with its name, paste column to new table with its name. Cheers! Eduardo.</description>
      <pubDate>Sat, 05 Aug 2017 19:16:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/42918#M24886</guid>
      <dc:creator>Eduardo</dc:creator>
      <dc:date>2017-08-05T19:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I identify a report in jsl if that report is not associated with a variable?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/42924#M24888</link>
      <description>&lt;P&gt;You could use the Subset() function to "copy" cells to a new table. It's very versatile and allows for conditional row selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A column can also be copied by getting and evaluating its script. See the JSL examples of both approaches below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = Open("$sample_data\big class.jmp");
dt2 = New Table("another table", New Column("data", values(1 :: 10)));
// Copy column "height" to another table (here from dt1 to dt2)
Eval(Eval Expr(dt2 &amp;lt;&amp;lt; Expr(dt1:height &amp;lt;&amp;lt; get script)));

//Or more direct: use Subset()
// "Copy" entire column(s)
dt_new = dt1 &amp;lt;&amp;lt; Subset(Columns(height), All rows(1));
// Or copy conditionally
dt2_new = dt1 &amp;lt;&amp;lt; Subset(Columns(height), Rows(dt1 &amp;lt;&amp;lt; get rows where(height &amp;gt; 62)));
&lt;/CODE&gt;a&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 00:24:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-to-select-cells-to-copy-to-another-table/m-p/42924#M24888</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2017-08-06T00:24:07Z</dc:date>
    </item>
  </channel>
</rss>

