<?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 Bug] Got problem when try to concatenate two tables from different directory in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398138#M64890</link>
    <description>yeah it works! and why you put "show" two times?</description>
    <pubDate>Sat, 03 Jul 2021 09:42:18 GMT</pubDate>
    <dc:creator>achid03</dc:creator>
    <dc:date>2021-07-03T09:42:18Z</dc:date>
    <item>
      <title>[JSL Bug] Got problem when try to concatenate two tables from different directory</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/397886#M64858</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm a new user in JMP scripting and need help to find bugs in my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to do here is to concatenate already opened data files (dt1 and dt2). I found that the script did not concatenate the two tables. line 41 and so on was not executed plus with no error message&lt;/P&gt;&lt;P&gt;Can anyone help me with it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="achid03_0-1625220512282.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33949i104EE513D76514A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="achid03_0-1625220512282.png" alt="achid03_0-1625220512282.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:51:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/397886#M64858</guid>
      <dc:creator>achid03</dc:creator>
      <dc:date>2023-06-09T19:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: [JSL Bug] Got problem when try to concatenate two tables from different directory</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/397901#M64859</link>
      <description>&lt;P&gt;I think you will have to reassign dt1 and dt2 to open command after Pick File as Pick File will return path to the picked file.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt1 = Pick File(
	"Select JMP File",
	"$DOCUMENTS",
	{"JMP Files|jmp;jsl;jrn", "All Files|*"},
	1,
	0,
	"newJmpFile.jmp"
);
dt1 = Open(dt1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jul 2021 11:01:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/397901#M64859</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-07-02T11:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: [JSL Bug] Got problem when try to concatenate two tables from different directory</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398120#M64887</link>
      <description>I did reassign dt1 and dt2. But it didn't work</description>
      <pubDate>Sat, 03 Jul 2021 07:51:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398120#M64887</guid>
      <dc:creator>achid03</dc:creator>
      <dc:date>2021-07-03T07:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: [JSL Bug] Got problem when try to concatenate two tables from different directory</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398121#M64888</link>
      <description>&lt;P&gt;This works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt1_dir = Pick Directory("Pick dir", "$SAMPLE_DATA/");
dt1 = Pick File(
	"Select JMP File",
	dt1_dir,
	{"JMP Files|jmp;jsl;jrn", "All Files|*"},
	1,
	0,
	0
);
Show(dt1);
dt1 = Open(dt1);
Show(dt1);

dt2_dir = Pick Directory("Pick dir", "$SAMPLE_DATA/");
dt2 = Pick File(
	"Select JMP File",
	dt2_dir,
	{"JMP Files|jmp;jsl;jrn", "All Files|*"},
	1,
	0,
	0
);
Show(dt2);
dt2 = Open(dt2);
Show(dt2);

concat_dt = dt1 &amp;lt;&amp;lt; Concatenate(dt2,
	Output Table("Concat datatable"),
	Create Source Column
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Do similar changes to your code and check if it works (check Concatenate())&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 08:27:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398121#M64888</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-07-03T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: [JSL Bug] Got problem when try to concatenate two tables from different directory</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398138#M64890</link>
      <description>yeah it works! and why you put "show" two times?</description>
      <pubDate>Sat, 03 Jul 2021 09:42:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398138#M64890</guid>
      <dc:creator>achid03</dc:creator>
      <dc:date>2021-07-03T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: [JSL Bug] Got problem when try to concatenate two tables from different directory</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398143#M64891</link>
      <description>&lt;P&gt;Look in the log and you'll see the show before the assignment is a string, and after the assignment is a data table.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 10:18:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398143#M64891</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-07-03T10:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: [JSL Bug] Got problem when try to concatenate two tables from different directory</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398144#M64892</link>
      <description>&lt;P&gt;...normally I'd name these variables differently:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1Name = "c:\...data.jmp";
dt1 = open(dt1Name);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so the name better describes the contents of the variable. Sometimes I reuse variables, but it usually causes me to make mistakes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2021 10:32:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Bug-Got-problem-when-try-to-concatenate-two-tables-from/m-p/398144#M64892</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-07-03T10:32:57Z</dc:date>
    </item>
  </channel>
</rss>

