<?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: Save JMP file generated using import function to specific location with specific name. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836244#M101331</link>
    <description>&lt;P&gt;I assume you want to save files found from Sample Data folder into single JMP table named Sample Data.jmp which is on the same level as the folder. &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

xlsx_dir = "$DOWNLOADS/JMP example/Sample data/";
dir = Convert File Path(xlsx_dir, posix);

dts = Multiple File Import( // will return a list
	&amp;lt;&amp;lt;Set Folder(xlsx_dir),
	&amp;lt;&amp;lt;Set Excel Best Guess(0),
	&amp;lt;&amp;lt;Set Excel Has Headers(0)
) &amp;lt;&amp;lt; Import Data;


dt = dts[1]; // basically you should end up with just a single file

// drop 1 level lower in path
root_dir = Word([1 -2], dir, "/\") || "/";
foldername = Word(-1, dir, "/\");

dt &amp;lt;&amp;lt; Save(root_dir || foldername || ".jmp");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Modify as needed, this provides some ideas on how to "traverse" the directory path using Word()&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2025 19:48:11 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-02-05T19:48:11Z</dc:date>
    <item>
      <title>Save JMP file generated using import function to specific location with specific name.</title>
      <link>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836224#M101330</link>
      <description>&lt;P&gt;I am importing multiple file from using import function. I want to save it automatically outside the folder and with same name.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ConfidenceOwl94_0-1738784402362.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72537i2B03C49305B5EAA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ConfidenceOwl94_0-1738784402362.png" alt="ConfidenceOwl94_0-1738784402362.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 19:40:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836224#M101330</guid>
      <dc:creator>ConfidenceOwl94</dc:creator>
      <dc:date>2025-02-05T19:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Save JMP file generated using import function to specific location with specific name.</title>
      <link>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836244#M101331</link>
      <description>&lt;P&gt;I assume you want to save files found from Sample Data folder into single JMP table named Sample Data.jmp which is on the same level as the folder. &lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

xlsx_dir = "$DOWNLOADS/JMP example/Sample data/";
dir = Convert File Path(xlsx_dir, posix);

dts = Multiple File Import( // will return a list
	&amp;lt;&amp;lt;Set Folder(xlsx_dir),
	&amp;lt;&amp;lt;Set Excel Best Guess(0),
	&amp;lt;&amp;lt;Set Excel Has Headers(0)
) &amp;lt;&amp;lt; Import Data;


dt = dts[1]; // basically you should end up with just a single file

// drop 1 level lower in path
root_dir = Word([1 -2], dir, "/\") || "/";
foldername = Word(-1, dir, "/\");

dt &amp;lt;&amp;lt; Save(root_dir || foldername || ".jmp");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Modify as needed, this provides some ideas on how to "traverse" the directory path using Word()&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 19:48:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836244#M101331</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-02-05T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Save JMP file generated using import function to specific location with specific name.</title>
      <link>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836245#M101332</link>
      <description>&lt;P&gt;Thanks for the explanation. I worked fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to get file name but was strugalling with saving it.&lt;/P&gt;&lt;P&gt;//File name=reverse(words(dir,"/"))[1];&lt;BR /&gt;//dt &amp;lt;&amp;lt; Set Name(wafer);&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 19:58:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836245#M101332</guid>
      <dc:creator>ConfidenceOwl94</dc:creator>
      <dc:date>2025-02-05T19:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Save JMP file generated using import function to specific location with specific name.</title>
      <link>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836595#M101339</link>
      <description>&lt;P&gt;Word(-1, str,) is basically same as Reverse(Words(str))[1]. Learning how to utilize both Word and Words can be very helpful (and sometimes Item and Items())&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

my_str = "http://www.jmp.com";

r1 = Word(-1, my_str, ":/.");
r2 = Reverse(Words(my_str, ":/."))[1];

Show(r1, r2);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Feb 2025 06:38:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Save-JMP-file-generated-using-import-function-to-specific/m-p/836595#M101339</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-02-06T06:38:25Z</dc:date>
    </item>
  </channel>
</rss>

