<?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 Hide and Exclude dates column faster in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389490#M63969</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a JMP table with 76K rows with a column named "sortDateColumn" that has dates in this format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;09/24/2020 11:29:25 AM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in my code I have this line that takes 4 seconds to run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;minDate = "02/16/2021 12:23:09 AM";&lt;BR /&gt;dt &amp;lt;&amp;lt; Select where( Column( sortDateColumn )[] &amp;lt;= Informat( minDate, "MDYHMS" ) ) &amp;lt;&amp;lt; Hide and Exclude();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is there a faster way to run this line? since doing this a few times slows my whole code down by like 1 minute&lt;/P&gt;&lt;P&gt;if i do on another row&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Select Where( :"age" &amp;lt; 650 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it takes less then 0.1 seconds but with the dates it takes a lot more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 19:48:11 GMT</pubDate>
    <dc:creator>itzikd</dc:creator>
    <dc:date>2023-06-09T19:48:11Z</dc:date>
    <item>
      <title>Hide and Exclude dates column faster</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389490#M63969</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a JMP table with 76K rows with a column named "sortDateColumn" that has dates in this format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;09/24/2020 11:29:25 AM&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in my code I have this line that takes 4 seconds to run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;minDate = "02/16/2021 12:23:09 AM";&lt;BR /&gt;dt &amp;lt;&amp;lt; Select where( Column( sortDateColumn )[] &amp;lt;= Informat( minDate, "MDYHMS" ) ) &amp;lt;&amp;lt; Hide and Exclude();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is there a faster way to run this line? since doing this a few times slows my whole code down by like 1 minute&lt;/P&gt;&lt;P&gt;if i do on another row&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; Select Where( :"age" &amp;lt; 650 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;it takes less then 0.1 seconds but with the dates it takes a lot more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:48:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389490#M63969</guid>
      <dc:creator>itzikd</dc:creator>
      <dc:date>2023-06-09T19:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and Exclude dates column faster</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389522#M63970</link>
      <description>&lt;P&gt;There are a few errors with your code but I think the one that is slowing you down the most is that there is no informat "MDYHMS". That's causing many errors to be written to the log and that's what taking so long. Take a look in your log and see if I'm correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;minDate="02/16/2021 12:23:09 AM";
current data table() &amp;lt;&amp;lt; Select where( :column 1 &amp;lt;= informat(minDate, "m/d/y h:m:s" )) &amp;lt;&amp;lt; Hide and Exclude();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, even that's more than you need. You can avoid the informat all together by using a datetime constant (you can read about them in&amp;nbsp;&lt;LI-MESSAGE title="Using dates, times, datetimes and durations in JMP" uid="68689" url="https://community.jmp.com/t5/JMPer-Cable/Using-dates-times-datetimes-and-durations-in-JMP/m-p/68689#U68689" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;minDate="16Feb2021 12:23:09 AM";
current data table() &amp;lt;&amp;lt; Select where( :column 1 &amp;lt;= informat( minDate ) &amp;lt;&amp;lt; Hide and Exclude();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Finally, you had a spurious [] after your Column() designation. I don't think that's useful here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 12:55:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389522#M63970</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2021-05-31T12:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and Exclude dates column faster</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389533#M63971</link>
      <description>this did fix the issue, it now runs in 0.3 seconds thanks!</description>
      <pubDate>Mon, 31 May 2021 13:40:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389533#M63971</guid>
      <dc:creator>itzikd</dc:creator>
      <dc:date>2021-05-31T13:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hide and Exclude dates column faster</title>
      <link>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389635#M63977</link>
      <description>&lt;P&gt;I do not know how much this change will speed up this step, but one of these versions might be worth a little improvement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// call Informat() function once for constant time point
minDate = Informat( "16Feb2021 12:23:09 AM" );
Current Data Table() &amp;lt;&amp;lt; Select Where( :column 1 &amp;lt;= minDate ) &amp;lt;&amp;lt; Hide and Exclude();

// use literal value for constant time point
Current Data Table() &amp;lt;&amp;lt; Select Where( :column 1 &amp;lt;= 16Feb2021:12:23:09 ) &amp;lt;&amp;lt; Hide and Exclude();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:29:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hide-and-Exclude-dates-column-faster/m-p/389635#M63977</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-06-01T14:29:23Z</dc:date>
    </item>
  </channel>
</rss>

