<?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 Ho to make the script continue running after encountering a non-present column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Ho-to-make-the-script-continue-running-after-encountering-a-non/m-p/354811#M60465</link>
    <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I have a data table with a lot of columns. in my script I name some of them and make a new table to plot the graphs.&lt;/P&gt;&lt;P&gt;the data get updated every day for last 90 days. sometimes in happens that one of the column does not present in the data table in the updated data since it was not running on the tool for a while. the script stops when encounters to naming that non-present column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can make the script continue running and skip that non-present column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:04:46 GMT</pubDate>
    <dc:creator>Mikasa</dc:creator>
    <dc:date>2023-06-09T22:04:46Z</dc:date>
    <item>
      <title>Ho to make the script continue running after encountering a non-present column?</title>
      <link>https://community.jmp.com/t5/Discussions/Ho-to-make-the-script-continue-running-after-encountering-a-non/m-p/354811#M60465</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;I have a data table with a lot of columns. in my script I name some of them and make a new table to plot the graphs.&lt;/P&gt;&lt;P&gt;the data get updated every day for last 90 days. sometimes in happens that one of the column does not present in the data table in the updated data since it was not running on the tool for a while. the script stops when encounters to naming that non-present column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can make the script continue running and skip that non-present column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:04:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ho-to-make-the-script-continue-running-after-encountering-a-non/m-p/354811#M60465</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2023-06-09T22:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to make the script continue running after encountering a non-present column?</title>
      <link>https://community.jmp.com/t5/Discussions/Ho-to-make-the-script-continue-running-after-encountering-a-non/m-p/354828#M60467</link>
      <description>&lt;P&gt;You'll want to use the &lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/programming-functions.shtml#ww5022792" target="_blank"&gt;Try()&lt;/A&gt; function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can read more in the &lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/throw-and-catch-exceptions.shtml#ww307385" target="_self"&gt;Throwing and Catching Exceptions&lt;/A&gt; part of the &lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/introduction.shtml#307385" target="_blank"&gt;Scripting Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 22:27:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ho-to-make-the-script-continue-running-after-encountering-a-non/m-p/354828#M60467</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2021-02-01T22:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Ho to make the script continue running after encountering a non-present column?</title>
      <link>https://community.jmp.com/t5/Discussions/Ho-to-make-the-script-continue-running-after-encountering-a-non/m-p/355050#M60494</link>
      <description>&lt;P&gt;I just happened to be working on a script that has that exact same problem.&lt;/P&gt;
&lt;P&gt;I used the approach the&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6878"&gt;@Jeff_Perkinson&lt;/a&gt;&amp;nbsp; referenced above&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;for (i=1, i&amp;lt;=nitems(fixlist), i++,
	try(fixlist[i]&amp;lt;&amp;lt;Set Modeling Type( "Continuous" )); // Try() ignores errors, so if a column isnt there it still runs
	try(fixlist[i]&amp;lt;&amp;lt;Set Data Type( numeric));
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Feb 2021 15:04:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Ho-to-make-the-script-continue-running-after-encountering-a-non/m-p/355050#M60494</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2021-02-02T15:04:56Z</dc:date>
    </item>
  </channel>
</rss>

