<?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: The task scheduler in windows never stop running my script. in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317348#M56862</link>
    <description>&lt;P&gt;Thanaks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14379"&gt;@Ryan_Gilmore&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I have the same setting but still not working&lt;/P&gt;</description>
    <pubDate>Tue, 06 Oct 2020 14:37:50 GMT</pubDate>
    <dc:creator>Mikasa</dc:creator>
    <dc:date>2020-10-06T14:37:50Z</dc:date>
    <item>
      <title>The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/315682#M56778</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I have made a script to daily report a Html file. I am using Task scheduler in windows 10 to run the jsl every day.&amp;nbsp; I have&lt;/P&gt;&lt;P&gt;to Action:&amp;nbsp;"C:\Program Files\SAS\....\14\jmp.exe",&amp;nbsp; location: "C:\....\myscript.jsl"&lt;/P&gt;&lt;P&gt;I have closed all tables in the script and put Quit("no save"); at the end, but the job is running for ever with no result and stopping.&lt;/P&gt;&lt;P&gt;Has any one a solution or any clue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:39:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/315682#M56778</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2023-06-09T23:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/315817#M56783</link>
      <description>&lt;P&gt;If you run your script from a CMD window, does JMP produce the results and shutdown correctly? From the prompt, you should be able to do this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 520px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27122i495AB4956E685516/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The echo command just makes a very short file, then JMP runs it. I see JMP open for a few seconds, then goes away.&lt;/P&gt;&lt;P&gt;You can get the correct path to JMP from the desktop icon properties. Mine (above) is not the usual path. And looking back, I should look up quit() in the scripting index and see what it expects its parameter to be...&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2020 18:07:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/315817#M56783</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-10-02T18:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/315821#M56786</link>
      <description>I've never done that in CMD and I tried but it does not recognized the command&lt;BR /&gt;the path for my JMP is&lt;BR /&gt;C:\Program Files\SAS\JMPPRO\14\jmp.exe&lt;BR /&gt;the script is in another path</description>
      <pubDate>Fri, 02 Oct 2020 19:37:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/315821#M56786</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-02T19:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/316298#M56791</link>
      <description>&lt;P&gt;The spaces in the filenames (Program Files) may be why it did not work. You'll probably need quotation marks similar to what you showed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;"C:\Program Files\SAS\JMPPRO\14\jmp.exe"&amp;nbsp; &amp;nbsp; "C:\....\myscript.jsl"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another question: after the scheduler starts JMP, and JMP doesn't stop, what do you see in the JMP log window?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 06:18:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/316298#M56791</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-10-03T06:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/316983#M56838</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It can be run in CMD perfectly.&lt;/P&gt;&lt;P&gt;Task scheduler does not give me any log file since it does not stop running.!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 16:42:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/316983#M56838</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-05T16:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317155#M56847</link>
      <description>&lt;P&gt;Is there a JMP window still open? Maybe minimized on the task bar? Can you get to the JMP menu and view-&amp;gt;log?&lt;/P&gt;&lt;P&gt;Is there a hidden dialog that you can alt-tab to? Is JMP in a loop, and will Esc key stop the loop?&lt;/P&gt;&lt;P&gt;Can you share a picture of what you are seeing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 00:16:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317155#M56847</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-10-06T00:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317323#M56859</link>
      <description>&lt;P&gt;When It is running, the JMP window does not open. the only thing I can see is the scheduler window.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27187iB3554A583A49279D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 13:58:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317323#M56859</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-06T13:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317326#M56860</link>
      <description>&lt;P&gt;When I've encountered this issue, I open JMP on the machine then run the script. Often times it will be a preference that is not set the same as on the development machine or a file/directory that is missing which the script assumes exists.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's an example of a scheduled task I have setup.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="task.png" style="width: 958px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/27188i8962EF8F5AF16A32/image-size/large?v=v2&amp;amp;px=999" role="button" title="task.png" alt="task.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:18:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317326#M56860</guid>
      <dc:creator>Ryan_Gilmore</dc:creator>
      <dc:date>2020-10-06T14:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317348#M56862</link>
      <description>&lt;P&gt;Thanaks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14379"&gt;@Ryan_Gilmore&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I have the same setting but still not working&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:37:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317348#M56862</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-06T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317350#M56863</link>
      <description>&lt;P&gt;I would also suggest checking the permissions under which the task is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My next step would be to create a "hello world" type script then run that as a scheduled task using the same parameters as the one that is not working. If that works, then I would start re-building the script until it fails as a scheduled task.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 14:49:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317350#M56863</guid>
      <dc:creator>Ryan_Gilmore</dc:creator>
      <dc:date>2020-10-06T14:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317380#M56868</link>
      <description>&lt;P&gt;Thanks Ryan&lt;BR /&gt;I tried for "Hello" scrip. JMP came up but gave me this error for the script path. I changed the path to make sure it is not an issue but got the error again.&lt;BR /&gt;Unable to open file "C:\Users\....".&lt;BR /&gt;Unknown or ambiguous data source.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 15:58:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/317380#M56868</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-06T15:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/318568#M56906</link>
      <description>&lt;P&gt;googling for "&lt;SPAN&gt;Unknown or ambiguous data source&lt;/SPAN&gt;" yields two hits, this one and&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Can-JMP-call-a-DOS-Exe/td-p/689/page/2" target="_blank"&gt;https://community.jmp.com/t5/Discussions/Can-JMP-call-a-DOS-Exe/td-p/689/page/2&lt;/A&gt;&amp;nbsp;which suggests something is wrong with the file association for the extension you are using.&lt;/P&gt;&lt;P&gt;The file should be a .JSL file. You might also go into preferences and try resetting the file associations (the window specific section in prefs.)&lt;/P&gt;&lt;P&gt;We really need to see good pictures of what you are seeing. I'm also unclear why you think JMP is still running when there are no JMP windows open.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 02:04:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/318568#M56906</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-10-07T02:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/318799#M56935</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I learned that when I only have ("Run only when user in logged in), the JMP window pumps up and the gives me the error for ambiguous data source. But when I end the running, it askes me to Exit JMP snd close everything itself.&lt;/P&gt;&lt;P&gt;I reset the file association too but still the same.&lt;/P&gt;&lt;P&gt;I checked the script and they are jsl.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I mark (Run whether is user is logged in or not") it only shows me Running and no JMP window opens.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 18:21:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/318799#M56935</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-07T18:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/318831#M56940</link>
      <description>&lt;P&gt;Your filename does not appear to have any extension at all, "C:\Users\a...\OneDrive". That looks more like a folder name than a .JSL file. If it is actually MS OneDrive files-in-the-cloud, someone else may be able to help better than I can.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 20:13:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/318831#M56940</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-10-07T20:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/321304#M57138</link>
      <description>&lt;P&gt;I am having a similar issue trying to run a JSL script in Windows 10 using JMP 14.3.&amp;nbsp; A script that runs in less than 1 minute when manually triggered within JMP times out in Task Scheduler with Event ID 329 (timeout) after 1 hour.&amp;nbsp; I have tried first opening JMP and then opening the script in the Task Scheduler Actions, but this does not resolve the issue.&amp;nbsp; Any help will be appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 18:58:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/321304#M57138</guid>
      <dc:creator>lou</dc:creator>
      <dc:date>2020-10-13T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/321502#M57154</link>
      <description>&lt;P&gt;From my experience, if the script runs outside of the scheduled task, then I would check the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Permissions. Does the scheduled task have the same permissions as when running JMP interactively?&lt;/LI&gt;
&lt;LI&gt;File location. Are references to files correct? Maybe the default directory is different when running the scheduled task than when running manually?&lt;/LI&gt;
&lt;LI&gt;Preferences. Are the JMP preferences the same when running the task compared to when you run manually?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Another possibility...does the script exit JMP?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest starting with a "hello world" type script and get that to work as a scheduled task. You can then progress to your current script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A few other resources that may prove helpful,&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://www.xplg.com/windows-server-windows-task-scheduler/" target="_blank"&gt;https://www.xplg.com/windows-server-windows-task-scheduler/&lt;/A&gt;&amp;nbsp;(thanks to&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;)&lt;/LI&gt;
&lt;LI&gt;&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" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 14 Oct 2020 10:27:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/321502#M57154</guid>
      <dc:creator>Ryan_Gilmore</dc:creator>
      <dc:date>2020-10-14T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/321524#M57156</link>
      <description>&lt;P&gt;Thanks, Ryan.&lt;/P&gt;&lt;P&gt;I tried running the same scripts using System Scheduler.&amp;nbsp; Task Scheduler would open the task and time-out; System Scheduler provided me with a more descriptive error message.&amp;nbsp; The company I work for synchs all our files on the cloud, and these files could not be opened through either scheduler app.&amp;nbsp; When I moved the files directly to a hard drive location that was not synched to the cloud, the script ran fine in System Scheduler.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, it did appear to be a permissions issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 13:58:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/321524#M57156</guid>
      <dc:creator>lou</dc:creator>
      <dc:date>2020-10-14T13:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/322422#M57242</link>
      <description>&lt;P&gt;Thanks every one for their help. I change the Jsl file drive to a private drive and it worked. It seems the problem was permission issue.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 14:02:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/322422#M57242</guid>
      <dc:creator>Mikasa</dc:creator>
      <dc:date>2020-10-16T14:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: The task scheduler in windows never stop running my script.</title>
      <link>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/470705#M71483</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I did it and it works.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 09:23:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-task-scheduler-in-windows-never-stop-running-my-script/m-p/470705#M71483</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2022-03-17T09:23:18Z</dc:date>
    </item>
  </channel>
</rss>

