<?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: Assigning data table to new name and keep the original data table untouched after processing in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Assigning-data-table-to-new-name-and-keep-the-original-data/m-p/456623#M70189</link>
    <description>&lt;P&gt;thank you very much!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 06:21:04 GMT</pubDate>
    <dc:creator>joshua</dc:creator>
    <dc:date>2022-01-28T06:21:04Z</dc:date>
    <item>
      <title>Assigning data table to new name and keep the original data table untouched after processing</title>
      <link>https://community.jmp.com/t5/Discussions/Assigning-data-table-to-new-name-and-keep-the-original-data/m-p/455200#M70154</link>
      <description>&lt;P&gt;I'm trying to avoid making changes in my original data table and keep it un-intact when I do some operations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;say we have this kind of scenario&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;JSL&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for (i =  1, 3, i++, 

        dt_process = data table("dt_original);
        dt_process  &amp;lt;&amp;lt; newcolumn("elclassico", character,formula(if (Contains(:club, "BARC") , "Barcelona", "delete")
       dt_process &amp;lt;&amp;lt; save("save_my_club"||char(i))
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After this process when i = 2 it the jsl says to me cannot find dt_original because the name has been changed.&amp;nbsp;&lt;BR /&gt;Why this is happening ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:43:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assigning-data-table-to-new-name-and-keep-the-original-data/m-p/455200#M70154</guid>
      <dc:creator>joshua</dc:creator>
      <dc:date>2023-06-10T23:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning data table to new name and keep the original data table untouched after processing</title>
      <link>https://community.jmp.com/t5/Discussions/Assigning-data-table-to-new-name-and-keep-the-original-data/m-p/455354#M70157</link>
      <description>&lt;P&gt;Save will change the name of the dataset and you are always using reference to same datatable (dt_original)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
show(dt &amp;lt;&amp;lt; get name);
dt &amp;lt;&amp;lt; Save("$temp\deleteme Big Class.jmp"); // explicit location
show(dt &amp;lt;&amp;lt; get name);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You could create subset instead and save that (if you don't need to leave these open, remember to close them)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_process = dt_original &amp;lt;&amp;lt; Subset(Selected Columns(0), All Rows);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jan 2022 05:19:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assigning-data-table-to-new-name-and-keep-the-original-data/m-p/455354#M70157</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-27T05:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning data table to new name and keep the original data table untouched after processing</title>
      <link>https://community.jmp.com/t5/Discussions/Assigning-data-table-to-new-name-and-keep-the-original-data/m-p/456623#M70189</link>
      <description>&lt;P&gt;thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 06:21:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Assigning-data-table-to-new-name-and-keep-the-original-data/m-p/456623#M70189</guid>
      <dc:creator>joshua</dc:creator>
      <dc:date>2022-01-28T06:21:04Z</dc:date>
    </item>
  </channel>
</rss>

