<?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: write selected rows to a new file in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16041#M14637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks good ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it outputs only the first column (call it Column A) in each row. Is there a way to write the entire row (Columns A - Column R).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2015 21:23:31 GMT</pubDate>
    <dc:creator>awalts12</dc:creator>
    <dc:date>2015-12-21T21:23:31Z</dc:date>
    <item>
      <title>write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16039#M14635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script where I select rows from a table based on certain criteria:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :gender == "female" &amp;amp; :dx == "ild" );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I write these "selected rows" to a new file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 20:34:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16039#M14635</guid>
      <dc:creator>awalts12</dc:creator>
      <dc:date>2015-12-21T20:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16040#M14636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awalts12,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :gender == "female" &amp;amp; :dx == "ild" );&lt;/P&gt;&lt;P&gt;sub=dt&amp;lt;&amp;lt;Subset(output table name(&lt;EM&gt;&amp;lt;Your Table Name&amp;gt;&lt;/EM&gt;), Selected Rows(1));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 21:07:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16040#M14636</guid>
      <dc:creator>DaveLee</dc:creator>
      <dc:date>2015-12-21T21:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16041#M14637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks good ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it outputs only the first column (call it Column A) in each row. Is there a way to write the entire row (Columns A - Column R).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 21:23:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16041#M14637</guid>
      <dc:creator>awalts12</dc:creator>
      <dc:date>2015-12-21T21:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16042#M14638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;awalts12,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like you have column A selected.&amp;nbsp; In that case JMP will subset the selected column and selected rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :gender == "female" &amp;amp; :dx == "ild" );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Clear Column Selection();&lt;/P&gt;&lt;P&gt;sub=dt&amp;lt;&amp;lt;Subset(output table name(&lt;EM&gt;&amp;lt;Your Table Name&amp;gt;&lt;/EM&gt;), Selected Rows(1));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 21:43:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16042#M14638</guid>
      <dc:creator>DaveLee</dc:creator>
      <dc:date>2015-12-21T21:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16043#M14639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first column may have been selected. Try this to override any column selection:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; font-size: 14px; line-height: normal; font-family: Courier;"&gt;sub &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; dt &lt;SPAN style="color: #011993;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;Subset&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;output table name&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #942193;"&gt;"my_sub"&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Selected Rows&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt; Selected Columns&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;))&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 22:42:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16043#M14639</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2015-12-21T22:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16044#M14640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help&amp;nbsp; - this works nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other question as I am new to JMP's syntax. How can I include a wild card in the "select Where" command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :name == "A*")&lt;/P&gt;&lt;P&gt;doesn't seem to work - I'd like to be able to select all names starting with an A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 00:54:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16044#M14640</guid>
      <dc:creator>awalts12</dc:creator>
      <dc:date>2015-12-22T00:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16045#M14641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where(substr(:name,1,1) == "A");&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:01:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16045#M14641</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2015-12-22T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16046#M14642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Back to the subset command, is there a way to suppress JMP from opening a new window with the subset of data? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm extracting 10 different subsets and then concatenating them together. So I need to generate each subset, but I don't need to see the subsets (except for debugging purposes) until they are concatenated. I have the concatenation coded fine, but every time i run my script I have to close the 10 "subset windows".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Avram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 22:35:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16046#M14642</guid>
      <dc:creator>awalts12</dc:creator>
      <dc:date>2015-12-22T22:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16047#M14643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dt &amp;lt;&amp;lt; select whee (substr(:name,1,1)=="A");&lt;/P&gt;&lt;P&gt;dt2 = dt &amp;lt;&amp;lt; subset(invisible,selected columns(0), selected rows(1));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make the data table invisible to the user, however, it will still appear in the JMP Windows List.&amp;nbsp; You can substitute "Private" for "Invisible" and the new data table will be invisible to the user and the JMP Windows List.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you close the data tables when you are done with them,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;close(dt2, nosave);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 01:03:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16047#M14643</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2015-12-23T01:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: write selected rows to a new file</title>
      <link>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16048#M14644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;awalts12,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make the table invisible by doing the following and wrap it in a for loop to do all subsetting in one step. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Select Where( :gender == "female" &amp;amp; :dx == "ild" );&lt;/P&gt;&lt;P&gt;dt &amp;lt;&amp;lt; Clear Column Selection();&lt;/P&gt;&lt;P&gt;sub=dt&amp;lt;&amp;lt;Subset(output table name(&lt;EM&gt;&amp;lt;Your Table Name&amp;gt;&lt;/EM&gt;), Selected Rows(1), Invisible);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 01:04:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/write-selected-rows-to-a-new-file/m-p/16048#M14644</guid>
      <dc:creator>DaveLee</dc:creator>
      <dc:date>2015-12-23T01:04:15Z</dc:date>
    </item>
  </channel>
</rss>

