<?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: How do I save a data table to TXT without column names? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75309#M35914</link>
    <description>It's a masterpiece. Thank you very much!</description>
    <pubDate>Sun, 23 Sep 2018 14:10:02 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2018-09-23T14:10:02Z</dc:date>
    <item>
      <title>How do I save a data table to TXT without column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75111#M35893</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-09-22_08-31-58.png" style="width: 657px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12559iA8C88624B4DE93F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-09-22_08-31-58.png" alt="2018-09-22_08-31-58.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do I save a data table to TXT without column names?Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 00:35:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75111#M35893</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-09-22T00:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save a data table to TXT without column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75116#M35898</link>
      <description>&lt;P&gt;Here is a simple script that will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

// Loop across all rows
For( i = 1, i &amp;lt;= N Rows( dt ), i++,
	// Copy all columns for the given row into a list
	rowVals = dt[i, 0];
	
	// Initialize a string variable
	theString = "";
	
	// Loop across all values in the row list, and place them into the string variable
	For( k = 1, k &amp;lt;= N Items( rowVals ), k++,
		If( k &amp;gt; 1,
			// After the first value, add a comma between the values
			theString = theString || ","
		);
		theString = theString || char(rowVals[k]);
	);
	
	// Add a new line character at the end of the line
	theString=theString||"\!n";
	
	// Write the row's values to the output txt file
	If(i==1,
		save text file("$TEMP/myfile.txt",theString,mode("replace")),
		save text file("$TEMP/myfile.txt",theString,mode("append"))
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Sep 2018 03:05:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75116#M35898</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-09-22T03:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save a data table to TXT without column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75150#M35901</link>
      <description>Thank Jim!&lt;BR /&gt;It's just going to cycle like this.The same is true in VBA.</description>
      <pubDate>Sat, 22 Sep 2018 12:40:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75150#M35901</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-09-22T12:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save a data table to TXT without column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75218#M35905</link>
      <description>&lt;P&gt;I was also in need of solution for this. Thanks a lot for the soltion txnelson.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 18:33:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75218#M35905</guid>
      <dc:creator>BrinaL</dc:creator>
      <dc:date>2018-09-22T18:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save a data table to TXT without column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75219#M35906</link>
      <description>&lt;P&gt;An alternative is to change your export preferences, save the file and return the default preferences.&lt;/P&gt;&lt;P&gt;The script below contains the steps. It is documented in the JSL Companion, 2nd Ed. script 2_Extra_SaveText.jsl&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

//Get a copy of the user's settings
_xx = Get Preference( Export settings);

//set the text export preferences you want
Preference(
	Export Settings(
		End Of Line( CRLF ),
		End Of Field( Comma, CSV( 1 ) ),
		Export Table Headers( 0 ),
		Quote all column names( 0 ),
		Quote all character values( 0 ),
		Quote all numeric values( 0 )
	)
);
//you can look at preferences now an they will be changed.

dt = Open("$Sample_data/Big Class.jmp");
dt &amp;lt;&amp;lt; Save("c:/temp/bclass.txt");

//reset the user's preferences
_xx;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Sep 2018 18:44:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75219#M35906</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-09-22T18:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save a data table to TXT without column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75309#M35914</link>
      <description>It's a masterpiece. Thank you very much!</description>
      <pubDate>Sun, 23 Sep 2018 14:10:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/75309#M35914</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2018-09-23T14:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save a data table to TXT without column names?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/358523#M60862</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Since I need to save certain string chains in separate lines in a text file, I tried the above solution of txnelson one to one, however it returns a file but with string chains saved in one line. It seems that the the newline character does not bring desired effect in my case. What am I missing?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;ok, instead of&amp;nbsp;&lt;STRONG&gt;"\!n"&lt;/STRONG&gt; I wrote &lt;STRONG&gt;"\!r\!n"&lt;/STRONG&gt; and then worked as desired.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 17:28:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-save-a-data-table-to-TXT-without-column-names/m-p/358523#M60862</guid>
      <dc:creator>lukasz</dc:creator>
      <dc:date>2021-02-12T17:28:35Z</dc:date>
    </item>
  </channel>
</rss>

