<?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: Labeling rows as greater/less than a date with JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Labeling-rows-as-greater-less-than-a-date-with-JSL/m-p/36381#M21369</link>
    <description>&lt;P&gt;Thanks so much, that did the trick!&lt;/P&gt;</description>
    <pubDate>Sat, 25 Feb 2017 19:49:00 GMT</pubDate>
    <dc:creator>jamiesupica0</dc:creator>
    <dc:date>2017-02-25T19:49:00Z</dc:date>
    <item>
      <title>Labeling rows as greater/less than a date with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Labeling-rows-as-greater-less-than-a-date-with-JSL/m-p/36376#M21364</link>
      <description>&lt;P&gt;I have a dataset with a date column formatted dd/mm/yyyy hh:mm.&amp;nbsp; In my script I want to be able to set a variable equal to some date and then have the script create a new column labelling all rows as being “before” of “after” the specified date.&lt;/P&gt;&lt;P&gt;The workaround I’m using is to format the variable and the column in seconds but it’s not easy to read.&lt;/P&gt;&lt;P&gt;Is there a way to keep the dd/mm/yyyy formatting when setting the variable in the script and also have it work in a formula?&lt;/P&gt;&lt;P&gt;This is the script that doesn’t work:&lt;/P&gt;&lt;P&gt;varProcessChange = 03/20/2016 00:01&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;colCondition = New Column (“Condition”)&lt;/P&gt;&lt;P&gt;&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; &amp;lt;&amp;lt;data type (character)&lt;/P&gt;&lt;P&gt;&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; &amp;lt;&amp;lt;Modeling Type (“Nominal”)&lt;/P&gt;&lt;P&gt;&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; &amp;lt;&amp;lt;Set Formula (If(:Event Date &amp;lt; varProcessChange, “Before”, “After”)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:23:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Labeling-rows-as-greater-less-than-a-date-with-JSL/m-p/36376#M21364</guid>
      <dc:creator>jamiesupica0</dc:creator>
      <dc:date>2023-06-09T23:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling rows as greater/less than a date with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Labeling-rows-as-greater-less-than-a-date-with-JSL/m-p/36377#M21365</link>
      <description>&lt;P&gt;Here is a script that is very similar to what you want to do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = open("$SAMPLE_DATA\Time Series\Raleigh Temps.jmp");
varProcessChange = Date MDY( 6, 1, 1980 );
Eval(
	Eval Expr(
		colCondition = dt &amp;lt;&amp;lt; New Column( “Condition”,
			character,
			numinal,
			formula( If( :name( "month/Year" ) &amp;lt; Expr( varProcessChange ), "Before", "After" ) )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Feb 2017 03:29:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Labeling-rows-as-greater-less-than-a-date-with-JSL/m-p/36377#M21365</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-02-25T03:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Labeling rows as greater/less than a date with JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Labeling-rows-as-greater-less-than-a-date-with-JSL/m-p/36381#M21369</link>
      <description>&lt;P&gt;Thanks so much, that did the trick!&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 19:49:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Labeling-rows-as-greater-less-than-a-date-with-JSL/m-p/36381#M21369</guid>
      <dc:creator>jamiesupica0</dc:creator>
      <dc:date>2017-02-25T19:49:00Z</dc:date>
    </item>
  </channel>
</rss>

