<?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: JSL - opening files in the same folder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-opening-files-in-the-same-folder/m-p/382691#M63338</link>
    <description>&lt;P&gt;Depends a little how you are opening the A file. Below is one idea how you could approach this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt_A = Open("$SAMPLE_DATA/Boston Housing.jmp");
a_path = Convert File Path(dt_A &amp;lt;&amp;lt; get path);
folder_path = Substr(firstTable, 1, Contains(firstTable, "/", -1));
b_path = folder_path || "B.jmp";
c_path = folder_path || "C.jmp";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 05:54:57 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-05-06T05:54:57Z</dc:date>
    <item>
      <title>JSL - opening files in the same folder</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-opening-files-in-the-same-folder/m-p/382664#M63336</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have 3 files in a folder that i'm working with.&lt;/P&gt;&lt;P&gt;A = master datatable&lt;/P&gt;&lt;P&gt;B = Source 1&lt;/P&gt;&lt;P&gt;C = Source 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to write a script that can update information from B and C into A. How do I call up the datatables B and C without typing in the entire path of the file? Reason being there might be other people who will download this entire folder to use so I want the file path to be flexible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:46:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-opening-files-in-the-same-folder/m-p/382664#M63336</guid>
      <dc:creator>SCWong</dc:creator>
      <dc:date>2023-06-09T19:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: JSL - opening files in the same folder</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-opening-files-in-the-same-folder/m-p/382691#M63338</link>
      <description>&lt;P&gt;Depends a little how you are opening the A file. Below is one idea how you could approach this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt_A = Open("$SAMPLE_DATA/Boston Housing.jmp");
a_path = Convert File Path(dt_A &amp;lt;&amp;lt; get path);
folder_path = Substr(firstTable, 1, Contains(firstTable, "/", -1));
b_path = folder_path || "B.jmp";
c_path = folder_path || "C.jmp";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 05:54:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-opening-files-in-the-same-folder/m-p/382691#M63338</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-05-06T05:54:57Z</dc:date>
    </item>
  </channel>
</rss>

