cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Tomer9w
Level II

How to script to submit scheduled job

Hi

Is there a scriptable way to submit a scheduled job?

Thanks

3 REPLIES 3
txnelson
Super User

Re: How to script to submit scheduled job

There is the Schedule() function in JMP, which will run a script X number of seconds in the future.  But to do what you are looking for, I suggest you look at operating system tools and/or 3rd party products. 

Jim
mzwald
Staff

Re: How to script to submit scheduled job

As was suggested by @txnelson, Windows Task Scheduler is your friend (or Automator on MacOS).  To automate a JSL script, setup a Windows task to call the JMP.exe program with the .jsl script file as the argument.  This will cause JMP to run the script with the frequency you specify.  You probably want to include an exit() statement at the end of your script so that JMP closes after the script runs.  Take a look at this blog post which shows how to do it: Automating JMP import and publishing using Window Task Scheduler 

 

 

Byron_JMP
Staff

Re: How to script to submit scheduled job

One other thing to at @mzwald, .  Add //! to the first line of the script, and the script runs automatically when opened in JMP. (In other words, the script editor does not open.). When that's combined with exit(); and the use of "private" or "invisible" tables, the user of the script might not notice it running.

 

Oh and about exit();  it makes the current instance of JMP or the Instance JMP it is run in quit.  So make sure you save before running a script with exit(); in it.

 

 

JMP Systems Engineer, Health and Life Sciences (Pharma)