<?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: Create Jmp file by c# in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591541#M79562</link>
    <description>&lt;P&gt;You mean output a data table from C# so JMP can read it? Here are some ideas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use CSV. This is the easiest, and highly recommended.&lt;/LI&gt;
&lt;LI&gt;Use JSON.&lt;/LI&gt;
&lt;LI&gt;Use automation to run JMP from C#. This is complicated, but the only way to make a proper .jmp file. Requires JMP and Windows, not Mac. May be slower than you expect.&lt;/LI&gt;
&lt;LI&gt;Save a JMP data table as a script, study the script, and write C# code to make a similar script. This will give you a .jsl file that will open as a data table.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The .jmp file is a binary file. Most of the other files JMP saves are text, and can be opened with an editor. JMP does not document how to create the binary file, and may not support editing/changing some of the text files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How much data are you looking at? Pure numeric? There are some optimizations using blobs if you are sending &amp;gt;10 million or so numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 17:10:18 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2023-01-19T17:10:18Z</dc:date>
    <item>
      <title>Create Jmp file by c#</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591476#M79555</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I need to save a JMP file using C#. I checked in the samples folder attached to the software and there is no sign of saving a file.&lt;BR /&gt;It should be something simple but I couldn't find an answer online either.&lt;BR /&gt;Does anyone have an idea?&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:42:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591476#M79555</guid>
      <dc:creator>LinkageGrizzly1</dc:creator>
      <dc:date>2023-06-08T16:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create Jmp file by c#</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591541#M79562</link>
      <description>&lt;P&gt;You mean output a data table from C# so JMP can read it? Here are some ideas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use CSV. This is the easiest, and highly recommended.&lt;/LI&gt;
&lt;LI&gt;Use JSON.&lt;/LI&gt;
&lt;LI&gt;Use automation to run JMP from C#. This is complicated, but the only way to make a proper .jmp file. Requires JMP and Windows, not Mac. May be slower than you expect.&lt;/LI&gt;
&lt;LI&gt;Save a JMP data table as a script, study the script, and write C# code to make a similar script. This will give you a .jsl file that will open as a data table.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The .jmp file is a binary file. Most of the other files JMP saves are text, and can be opened with an editor. JMP does not document how to create the binary file, and may not support editing/changing some of the text files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How much data are you looking at? Pure numeric? There are some optimizations using blobs if you are sending &amp;gt;10 million or so numbers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 17:10:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591541#M79562</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-01-19T17:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Create Jmp file by c#</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591668#M79580</link>
      <description>Thanks Craige_Hales.&lt;BR /&gt;The reason I am trying to create a jmp file is that when I load data from sql server to jmp, the tables that are opened cannot be worked on until you save to a jmp file and only then can you work on the information. I thought to solve it by saving the data to a jmp file and then opening it for work. Maybe you have another idea how to solve the problem?</description>
      <pubDate>Fri, 20 Jan 2023 12:54:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591668#M79580</guid>
      <dc:creator>LinkageGrizzly1</dc:creator>
      <dc:date>2023-01-20T12:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create Jmp file by c#</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591869#M79594</link>
      <description>&lt;P&gt;It might be fastest to let JMP open the SQL data directly into a data table. If the C# code isn't adding anything to the data, it will probably be pretty easy to do the SQL statements from JSL.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/build-sql-queries-in-query-builder.shtml#ww609432" target="_self"&gt;query builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 16:11:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591869#M79594</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-01-21T16:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create Jmp file by c#</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591947#M79606</link>
      <description>&lt;P&gt;I'm trying to give the user easy access so they don't have to write queries&lt;/P&gt;&lt;P&gt;like you said i fill&amp;nbsp;DataTable&lt;/P&gt;&lt;P&gt;Maybe I'm doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP.&lt;STRONG&gt;DataTable&lt;/STRONG&gt; dt = null;&lt;BR /&gt;JMP.AUTODB db = rndJMP.NewDatabaseObject();&lt;/P&gt;&lt;P&gt;db.Connect(connactionString);&lt;BR /&gt;&lt;STRONG&gt;dt&lt;/STRONG&gt; = db.ExecuteSQLSelect(Query);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;missing a command that would allow editing later in JMP?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 06:52:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591947#M79606</guid>
      <dc:creator>LinkageGrizzly1</dc:creator>
      <dc:date>2023-01-22T06:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create Jmp file by c#</title>
      <link>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591985#M79611</link>
      <description>&lt;P&gt;I am not a C# or SQL or automation expert. Without seeing code and log messages I can't make good guesses.&lt;/P&gt;
&lt;P&gt;Print some intermediate results, add some comments to help me understand what's happening.&lt;/P&gt;
&lt;P&gt;You should make a working query in JMP first, then make that logic work from C#.&lt;/P&gt;
&lt;P&gt;From your question, I think it might be possible you just need to make the C# automation tell JMP to save the table to disk.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 19:55:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-Jmp-file-by-c/m-p/591985#M79611</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-01-22T19:55:49Z</dc:date>
    </item>
  </channel>
</rss>

