<?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: concatenate tables only if they exists in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830079#M101248</link>
    <description>&lt;P&gt;I would use something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	Try( Data Table( "big class" ) &amp;lt;&amp;lt; get name, "" ) != "" &amp;amp; Try(
		Data Table( "air traffic" ) &amp;lt;&amp;lt; get name,
		""
	) != "",
	Data Table( "big class" ) &amp;lt;&amp;lt; concatenate( Data Table( "air traffic" ) )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 31 Jan 2025 20:05:33 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2025-01-31T20:05:33Z</dc:date>
    <item>
      <title>concatenate tables only if they exists</title>
      <link>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830068#M101247</link>
      <description>&lt;P&gt;I am trying to create a workflow when I would like to open multiple tables and concatenate them. The issue I am running into is that I don't know whether the tables will be available. As an example let's assume I may have up to 8 tables total. Let's call them table1, table2... table8.&lt;/P&gt;&lt;P&gt;The workflow I created assumed all tables exists, but if I remove one or a few tables it generates the error since the table/s cannot be found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For open table step I have found a solution by adding action before step that will check if the table exists&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try(&lt;/P&gt;&lt;P&gt;Data Table("table1");&lt;/P&gt;&lt;P&gt;tableExist = 1&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;tableExist = 0&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Though I am not sure how to implement similar solution when I am trying to concatenate all available tables.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 19:45:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830068#M101247</guid>
      <dc:creator>andrey</dc:creator>
      <dc:date>2025-01-31T19:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate tables only if they exists</title>
      <link>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830079#M101248</link>
      <description>&lt;P&gt;I would use something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	Try( Data Table( "big class" ) &amp;lt;&amp;lt; get name, "" ) != "" &amp;amp; Try(
		Data Table( "air traffic" ) &amp;lt;&amp;lt; get name,
		""
	) != "",
	Data Table( "big class" ) &amp;lt;&amp;lt; concatenate( Data Table( "air traffic" ) )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2025 20:05:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830079#M101248</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-01-31T20:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate tables only if they exists</title>
      <link>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830085#M101251</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;Thank you the reply. Wouldn't this code only run if "big class" table was already open? Also I would have to repeat the process for the remaining tables I am assuming by adding one new table one at the time.&lt;/P&gt;&lt;P&gt;PS: I have tried this code and if "big class" table is not opened it asks me to choose another table.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2025 22:02:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830085#M101251</guid>
      <dc:creator>andrey</dc:creator>
      <dc:date>2025-01-31T22:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate tables only if they exists</title>
      <link>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830096#M101252</link>
      <description>&lt;P&gt;if either the big class data table, or the air traffic data table is not open, nothing will happen, no concatenation will take place.&amp;nbsp; If both tables are open, the tables will be concatenated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tested the code in JMP 18 and JMP 14 and it works as I specified.&amp;nbsp; I suspect you have placed your Concatenation outside of the IF() function specification.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2025 01:32:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/830096#M101252</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-02-01T01:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate tables only if they exists</title>
      <link>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/834985#M101286</link>
      <description>&lt;P&gt;Hey Andrey,&lt;BR /&gt;&lt;BR /&gt;If you’re being prompted to open a table when running that script, I suspect you are running it inside a JMP workflow. You can turn off that prompt from the workflow red triangle, uncheck “Allow replacement of references.”&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.jmp.com/support/help/en/18.1/index.shtml#page/jmp/workflow-builder-red-triangle-menu-options.shtml%23ww1170460" target="_blank" rel="noopener"&gt;https://www.jmp.com/support/help/en/18.1/index.shtml#page/jmp/workflow-builder-red-triangle-menu-options.shtml%23ww1170460&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 17:49:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/concatenate-tables-only-if-they-exists/m-p/834985#M101286</guid>
      <dc:creator>Jordan_Hiller</dc:creator>
      <dc:date>2025-02-03T17:49:31Z</dc:date>
    </item>
  </channel>
</rss>

