<?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 How to pass arguments from Python to jmp script while running the jsl from python ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/379251#M62926</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Does anyone have any pointers on how to pass arguments from python to a jump script (JMP15) ? Eg. I want to pass a file location to JMP to get a datatable , jsl will use this argument string to process the datatable.&lt;/P&gt;&lt;P&gt;This python script will be calling the jump script .jsl file using subprocess.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 19:45:03 GMT</pubDate>
    <dc:creator>JmpStatistician</dc:creator>
    <dc:date>2023-06-09T19:45:03Z</dc:date>
    <item>
      <title>How to pass arguments from Python to jmp script while running the jsl from python ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/379251#M62926</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Does anyone have any pointers on how to pass arguments from python to a jump script (JMP15) ? Eg. I want to pass a file location to JMP to get a datatable , jsl will use this argument string to process the datatable.&lt;/P&gt;&lt;P&gt;This python script will be calling the jump script .jsl file using subprocess.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:45:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/379251#M62926</guid>
      <dc:creator>JmpStatistician</dc:creator>
      <dc:date>2023-06-09T19:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass arguments from Python to jmp script while running the jsl from python ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/379268#M62928</link>
      <description>&lt;P&gt;&lt;LI-MESSAGE title="Pass argument when running script from command line" uid="341194" url="https://community.jmp.com/t5/Discussions/Pass-argument-when-running-script-from-command-line/m-p/341194#U341194" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;discussed this for the powershell caller; I think you can set the environment variable in python and retrieve it in JMP. Please post back with a short how-to if it works, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1492"&gt;@jschroedl&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 15:45:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/379268#M62928</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-04-23T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass arguments from Python to jmp script while running the jsl from python ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/379995#M63007</link>
      <description>&lt;P&gt;Thanks for sharing. I had seen it but was thinking if there was any direct way to pass to jmp function/script as the environment variable may change in remote system or different platforms.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway an example of how to do it in Python :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Python script to invoke the JMP15 exe with the full JSL script path(script_file_jmp_name) :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import os&lt;BR /&gt;import subprocess&lt;BR /&gt;os.environ[&lt;SPAN&gt;'ScriptArg'&lt;/SPAN&gt;] = "This is a string variable passed"&lt;BR /&gt;subprocess.call([&lt;SPAN&gt;"C:\Program Files\SAS\JMP\15\jmp.exe"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;script_file_jmp_name])&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSL :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open Log();
myvar = Get Environment Variable("ScriptArg");
print(myvar);&lt;BR /&gt;quit();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Apr 2021 08:45:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/379995#M63007</guid>
      <dc:creator>JmpStatistician</dc:creator>
      <dc:date>2021-04-27T08:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass arguments from Python to jmp script while running the jsl from python ?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/380045#M63014</link>
      <description>&lt;P&gt;Agree, there should be a JMP command line option to supply some JSL. &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5579"&gt;@Wendy_Murphrey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-MESSAGE title="Can JMP run JMP?" uid="283748" url="https://community.jmp.com/t5/Uncharted/Can-JMP-run-JMP/m-p/283748#U283748" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;wrote a custom JSL file for each copy of JMP it launched.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit: perfect example!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:08:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-arguments-from-Python-to-jmp-script-while-running/m-p/380045#M63014</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2021-04-27T13:08:11Z</dc:date>
    </item>
  </channel>
</rss>

