<?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: Setting up ODBC Query to run daily in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215817#M43111</link>
    <description>&lt;P&gt;The first half of my tutorial from &lt;A href="https://community.jmp.com/t5/Discovery-Summit-Europe-2019/tkb-p/discovery-eu-2019-content" target="_self"&gt;Discovery Summit Europe 2019&lt;/A&gt; covers this topic: &lt;LI-MESSAGE title="Automated Report Creation: From Data Import to Publication ( 2019-EU-TUT-079 )" uid="110064" url="https://community.jmp.com/t5/Discovery-Summit-Europe-2019/Automated-Report-Creation-From-Data-Import-to-Publication-2019/m-p/110064#U110064"&gt;&lt;/LI-MESSAGE&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 13:29:51 GMT</pubDate>
    <dc:creator>briancorcoran</dc:creator>
    <dc:date>2019-07-02T13:29:51Z</dc:date>
    <item>
      <title>Setting up ODBC Query to run daily</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215798#M43099</link>
      <description>&lt;P&gt;I am currently querying a couple of DB's using windows ODBC driver to read into JMP and eventually into a Data Table. I'd like to automate this process to update the DB and corresponding output scripts &amp;amp; Dashboards to run (for example) every day&amp;nbsp;@ midnight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any literature or reccomendations on how to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 07:08:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215798#M43099</guid>
      <dc:creator>hmiles</dc:creator>
      <dc:date>2019-07-02T07:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up ODBC Query to run daily</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215808#M43103</link>
      <description>&lt;P&gt;A small While loop who will execute once the day of year (atmidnight) changes&lt;/P&gt;&lt;P&gt;runtime_limit is a small fail_save to abord the loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

stop_command = 0;
try(win1&amp;lt;&amp;lt;close window;);
win1 = New Window( "Timer",
	V List Box(
		tb1 = text box("Date: " || Format( Today(), "d.m.y h:m:s" )),
		Button Box( "Cancel",
			stop_command =1;
			win1 &amp;lt;&amp;lt; close window;
		)
	)
);
i = 1;
runtime_limit = 10; // max number of iterations of the loop
D_year = day of year(today());
while(!stop_command,
	i++;
	if(i&amp;gt;runtime_limit,stop_command = 1;beep();throw("runtime limit reached"));
	wait(1); // execute every X secconds
	
	if(D_year != day of year(today()),
		// Execute Code
		print(i);
	);
	D_year = day of year(today());
	
	tb1 &amp;lt;&amp;lt; set text("Date: " || Format( Today(), "d.m.y h:m:s" ));
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jul 2019 09:15:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215808#M43103</guid>
      <dc:creator>Mauro_Gerber</dc:creator>
      <dc:date>2019-07-02T09:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up ODBC Query to run daily</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215811#M43106</link>
      <description>&lt;P&gt;JSL has a Schedule() function that will allow a script to be executed some number of seconds in the future.&amp;nbsp; See "Scheduling Actions" in the Scripting Guide for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Books==&amp;gt;Scripting Guide&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 09:25:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215811#M43106</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-07-02T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up ODBC Query to run daily</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215817#M43111</link>
      <description>&lt;P&gt;The first half of my tutorial from &lt;A href="https://community.jmp.com/t5/Discovery-Summit-Europe-2019/tkb-p/discovery-eu-2019-content" target="_self"&gt;Discovery Summit Europe 2019&lt;/A&gt; covers this topic: &lt;LI-MESSAGE title="Automated Report Creation: From Data Import to Publication ( 2019-EU-TUT-079 )" uid="110064" url="https://community.jmp.com/t5/Discovery-Summit-Europe-2019/Automated-Report-Creation-From-Data-Import-to-Publication-2019/m-p/110064#U110064"&gt;&lt;/LI-MESSAGE&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brian Corcoran&lt;/P&gt;
&lt;P&gt;JMP Development&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 13:29:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-up-ODBC-Query-to-run-daily/m-p/215817#M43111</guid>
      <dc:creator>briancorcoran</dc:creator>
      <dc:date>2019-07-02T13:29:51Z</dc:date>
    </item>
  </channel>
</rss>

