<?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: Is there a way to run a JSL script with an input? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255828#M50244</link>
    <description>&lt;P&gt;Yes you can have as many environment variables as you need.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Apr 2020 00:04:55 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2020-04-03T00:04:55Z</dc:date>
    <item>
      <title>Is there a way to run a JSL script with an input?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/254716#M50013</link>
      <description>&lt;P&gt;I'm wondering if I can run a jsl remotely and give it a directory right away...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a jsl script that uses a directory of a file and executes some commands. I would like to send it the directory of the file in a simple way where gui's wouldn't be involved (hopefully).&lt;/P&gt;&lt;P&gt;this is how i execute a jsl script from my PC at the moment:&lt;/P&gt;&lt;P&gt;os.system('cd "C:/Program Files/SAS/JMP/14/" &amp;amp;&amp;amp; jmp.exe "directory_to_script\blah.jsl"')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wondering if sending another line of code would send it the directory? Any clue, or any ideas to how to do this in a clean way?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 23:49:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/254716#M50013</guid>
      <dc:creator>mochar</dc:creator>
      <dc:date>2020-03-27T23:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a JSL script with an input?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/254764#M50027</link>
      <description>&lt;P&gt;Use an environment variable, and GetEnvironmentVariable("name") in JSL to retrieve it. (You can't use SetEnvironmentVariable(...) to return it, as far as I can tell.)&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Environment Variable named RALPH" style="width: 692px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22594iE4B4AFE8A51E9765/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Environment Variable named RALPH" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Environment Variable named RALPH&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;JMP gets a &lt;STRONG&gt;&lt;EM&gt;copy&lt;/EM&gt;&lt;/STRONG&gt; of the environment when it starts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 11:54:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/254764#M50027</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-03-28T11:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a JSL script with an input?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/254768#M50028</link>
      <description>&lt;P&gt;A little more complete example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Environment variable AND a script" style="width: 913px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22595i1452C9A014F79761/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Environment variable AND a script" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Environment variable AND a script&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You could also end the script with a quit(); command if needed.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Mar 2020 12:07:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/254768#M50028</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-03-28T12:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a JSL script with an input?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255739#M50234</link>
      <description>&lt;P&gt;Whenever I look at my log window, Get environment variable("RALPH" = "";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my cmd window, it tells me that 'RALPH' is not recognized as an internal or external command&lt;/P&gt;&lt;P&gt;&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="mochar_1-1585856512189.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22744i7D3D8498FDCBAD94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mochar_1-1585856512189.png" alt="mochar_1-1585856512189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 19:42:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255739#M50234</guid>
      <dc:creator>mochar</dc:creator>
      <dc:date>2020-04-02T19:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a JSL script with an input?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255807#M50239</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Use the SET command in the CMD window to set environment variables" style="width: 753px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22761i5D7B97226361E8BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Use the SET command in the CMD window to set environment variables" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Use the SET command in the CMD window to set environment variables&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 21:46:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255807#M50239</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-04-02T21:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a JSL script with an input?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255824#M50242</link>
      <description>&lt;P&gt;Thanks! Was able to finally make it work with your help.&amp;nbsp;&lt;BR /&gt;Can this be done with more than one environment variable? Can I have 2 or three environment values at a time?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 23:41:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255824#M50242</guid>
      <dc:creator>mochar</dc:creator>
      <dc:date>2020-04-02T23:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to run a JSL script with an input?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255828#M50244</link>
      <description>&lt;P&gt;Yes you can have as many environment variables as you need.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 00:04:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-way-to-run-a-JSL-script-with-an-input/m-p/255828#M50244</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2020-04-03T00:04:55Z</dc:date>
    </item>
  </channel>
</rss>

