<?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: How to refer to the datatable from which script was done? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-the-datatable-from-which-script-was-done/m-p/367887#M61779</link>
    <description>&lt;P&gt;If you are sure it will run against the table that was active when the script is started you can use the current data table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Mar 2021 16:03:22 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2021-03-15T16:03:22Z</dc:date>
    <item>
      <title>How to refer to the datatable from which script was done?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-the-datatable-from-which-script-was-done/m-p/367870#M61775</link>
      <description>&lt;P&gt;This might be a stupid question, but how do I refer to the datatable from which I ran the script if I dont know what the table name it is save as before hand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In most solutions in the forum the script starts with something as:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and then you can do things to dt like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; NewColumn( - - - -&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But what if I want my script to just run asuming dt is whatever table from which the script was run?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:27:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-the-datatable-from-which-script-was-done/m-p/367870#M61775</guid>
      <dc:creator>spoikayil</dc:creator>
      <dc:date>2023-06-10T23:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to refer to the datatable from which script was done?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-refer-to-the-datatable-from-which-script-was-done/m-p/367887#M61779</link>
      <description>&lt;P&gt;If you are sure it will run against the table that was active when the script is started you can use the current data table:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 16:03:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-refer-to-the-datatable-from-which-script-was-done/m-p/367887#M61779</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-03-15T16:03:22Z</dc:date>
    </item>
  </channel>
</rss>

