<?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 Pass Command-Line Input Argument to OnOpen in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Pass-Command-Line-Input-Argument-to-OnOpen/m-p/426194#M67594</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to select rows in a table based on command-line input parameter/arguments when opening *.jmp files. For example, in a Windows environment, I would like to run "$SAMPLE_DATA/Big Class.jmp 2 5 9" and have OnOpen script to retrieve the "2 5 9" arguments and interpret them to be a matrix [2, 5, 9] for an input to the "Set Select Rows" function. Any thoughts or alternative ideas would be greatly appreciated from the community.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Jun 2023 23:38:25 GMT</pubDate>
    <dc:creator>Technician</dc:creator>
    <dc:date>2023-06-10T23:38:25Z</dc:date>
    <item>
      <title>Pass Command-Line Input Argument to OnOpen</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-Command-Line-Input-Argument-to-OnOpen/m-p/426194#M67594</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to select rows in a table based on command-line input parameter/arguments when opening *.jmp files. For example, in a Windows environment, I would like to run "$SAMPLE_DATA/Big Class.jmp 2 5 9" and have OnOpen script to retrieve the "2 5 9" arguments and interpret them to be a matrix [2, 5, 9] for an input to the "Set Select Rows" function. Any thoughts or alternative ideas would be greatly appreciated from the community.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:38:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-Command-Line-Input-Argument-to-OnOpen/m-p/426194#M67594</guid>
      <dc:creator>Technician</dc:creator>
      <dc:date>2023-06-10T23:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Command-Line Input Argument to OnOpen</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-Command-Line-Input-Argument-to-OnOpen/m-p/426716#M67656</link>
      <description>&lt;P&gt;Hi Technician&lt;/P&gt;
&lt;P&gt;Hope below JSL can help you to solve the problem.&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
rows = dt &amp;lt;&amp;lt; Get Rows( {2, 5, 9} );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Oct 2021 12:19:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-Command-Line-Input-Argument-to-OnOpen/m-p/426716#M67656</guid>
      <dc:creator>frank_wang</dc:creator>
      <dc:date>2021-10-15T12:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pass Command-Line Input Argument to OnOpen</title>
      <link>https://community.jmp.com/t5/Discussions/Pass-Command-Line-Input-Argument-to-OnOpen/m-p/426942#M67662</link>
      <description>&lt;P&gt;I don't know of a way to get parameters sent to JMP directly, but two workarounds are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use environment variables as demonstrated here:&lt;LI-MESSAGE title="Jmp.exe arguments" uid="67572" url="https://community.jmp.com/t5/Discussions/Jmp-exe-arguments/m-p/67572#U67572" 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;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Call a batch file with arguments instead that saves those arguments to a file in a specific location and then opens JMP which reads that file.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 11:52:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Pass-Command-Line-Input-Argument-to-OnOpen/m-p/426942#M67662</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-10-15T11:52:15Z</dc:date>
    </item>
  </channel>
</rss>

