<?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 do can save a JMP file with the column name as a CSV file? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-can-save-a-JMP-file-with-the-column-name-as-a-CSV-file/m-p/229519#M45563</link>
    <description>&lt;P&gt;I searched the Discussions posts, and saved JMP as TXT file first, and then changed TXT name to CSV.&lt;/P&gt;&lt;P&gt;But my JMP default does not check "Export Table Headers".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-10-18_16-37.png" style="width: 663px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19756i06C2448879DF9F51/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-10-18_16-37.png" alt="2019-10-18_16-37.png" /&gt;&lt;/span&gt;&lt;BR /&gt;How can the JSL be saved as a CSV file with the column name?&lt;/P&gt;&lt;P&gt;I added "Export Table Headers(1)" in the code, which did not work.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2019 08:52:53 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2019-10-18T08:52:53Z</dc:date>
    <item>
      <title>How do can save a JMP file with the column name as a CSV file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-save-a-JMP-file-with-the-column-name-as-a-CSV-file/m-p/229519#M45563</link>
      <description>&lt;P&gt;I searched the Discussions posts, and saved JMP as TXT file first, and then changed TXT name to CSV.&lt;/P&gt;&lt;P&gt;But my JMP default does not check "Export Table Headers".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-10-18_16-37.png" style="width: 663px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/19756i06C2448879DF9F51/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-10-18_16-37.png" alt="2019-10-18_16-37.png" /&gt;&lt;/span&gt;&lt;BR /&gt;How can the JSL be saved as a CSV file with the column name?&lt;/P&gt;&lt;P&gt;I added "Export Table Headers(1)" in the code, which did not work.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 08:52:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-save-a-JMP-file-with-the-column-name-as-a-CSV-file/m-p/229519#M45563</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-10-18T08:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do can save a JMP file with the column name as a CSV file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-save-a-JMP-file-with-the-column-name-as-a-CSV-file/m-p/229520#M45564</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12538"&gt;@lwx228&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your screenshot looks like an older version of JMP.&amp;nbsp; Please provide the JMP version and the OS (Windows?) that you are using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In JMP 13 and later versions you can just save&amp;nbsp; the .csv format. It might not be available for your version.&amp;nbsp; If it is, this is the best method.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt &amp;lt;&amp;lt; Save( "c:\temp\deleteme2 Big Class.csv" ); // convert to CSV format
Close( dt, "NoSave" );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Saving a text file requires changing the &lt;STRONG&gt;ExportSettings&lt;/STRONG&gt; preference. I recommend saving the current preferences, change it, export/save the text file(s), then reset the preference.&amp;nbsp; Here is a script to do that.&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" );

pathout = "c:\temp\";
ofid    =  "BigClass_csv";

// Save as text with comma delimiters
// Get user Export Preferences
xptPref = Get Preferences( Export Settings );

// Set desired Export Preferences
Preferences(
	ExportSettings(
		End Of Line( CRLF ),
		End Of Field( Comma ),  //optionally try: Tab|Space|Other("|")|Other("^") etc
		Export Table Headers( 1 )
	)
);

// Save as .txt
dt &amp;lt;&amp;lt; Save( pathOut || ofid || ".txt" );

// Reset user Export Preferences
Eval( xptPref ); 

// xptPref;  // works as well.

Close(dt,NoSave);

Rename File( pathout || ofid || ".txt", ofid || ".csv");.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope one of these work for you.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 09:17:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-save-a-JMP-file-with-the-column-name-as-a-CSV-file/m-p/229520#M45564</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2019-10-18T09:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do can save a JMP file with the column name as a CSV file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-can-save-a-JMP-file-with-the-column-name-as-a-CSV-file/m-p/229521#M45565</link>
      <description>I used win7,&lt;BR /&gt;The CSV file saved by the second method ,&lt;BR /&gt;the first code still has no column name.&lt;BR /&gt;Thank gzmorgan0!</description>
      <pubDate>Fri, 18 Oct 2019 09:33:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-can-save-a-JMP-file-with-the-column-name-as-a-CSV-file/m-p/229521#M45565</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2019-10-18T09:33:56Z</dc:date>
    </item>
  </channel>
</rss>

