<?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: Nested Try statement in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Nested-Try-statement/m-p/716274#M89842</link>
    <description>&lt;P&gt;I have found an error in catch expression of the second try statement, that is why it was executing the print statement.&lt;/P&gt;&lt;P&gt;After correction, the script works as intended.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 11:06:25 GMT</pubDate>
    <dc:creator>bbenny7</dc:creator>
    <dc:date>2024-01-12T11:06:25Z</dc:date>
    <item>
      <title>Nested Try statement</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Try-statement/m-p/716253#M89841</link>
      <description>&lt;P&gt;I am trying to run a script similar to the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Try(

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dt1 = Open(path1);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Try(

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dt2 = Open(path2);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dt2 &amp;lt;&amp;lt; Concatenate(dt1, "Append to first table");

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dt2 = dt1 &amp;lt;&amp;lt; Subset(All rows);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dt2 &amp;lt;&amp;lt; Save(path2);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;,

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;print("No dt1 found!");

);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, when it fails to open dt2, instead of executing the subset statement, it executes the print statement.&lt;/P&gt;&lt;P&gt;The question is if it possible to run nested try statements.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 10:45:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Try-statement/m-p/716253#M89841</guid>
      <dc:creator>bbenny7</dc:creator>
      <dc:date>2024-01-12T10:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Try statement</title>
      <link>https://community.jmp.com/t5/Discussions/Nested-Try-statement/m-p/716274#M89842</link>
      <description>&lt;P&gt;I have found an error in catch expression of the second try statement, that is why it was executing the print statement.&lt;/P&gt;&lt;P&gt;After correction, the script works as intended.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 11:06:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nested-Try-statement/m-p/716274#M89842</guid>
      <dc:creator>bbenny7</dc:creator>
      <dc:date>2024-01-12T11:06:25Z</dc:date>
    </item>
  </channel>
</rss>

