<?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 to delete a column after performing join in jsl? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52601#M29783</link>
    <description>&lt;P&gt;1. You need to read the Scripting Guide.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;It will show you that columns can be referenced by name or by number in most cases.&lt;/P&gt;
&lt;P&gt;2. You need to try things on your own,&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtx &amp;lt;&amp;lt; delete columns(3);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;works just fine&lt;/P&gt;</description>
    <pubDate>Mon, 05 Mar 2018 21:45:26 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-03-05T21:45:26Z</dc:date>
    <item>
      <title>How to delete a column after performing join in jsl?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52591#M29774</link>
      <description>&lt;P&gt;For example,&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dte &amp;lt;&amp;lt; Join(
                With(dtf),
               By Matching Column(:Y = :Y ),
               Preserve main table order(1),
               output table("Joined Table");
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After I run this script, a new table is generated having the "Y" columns from both the tables, but after joining I want to get rid of those columns. Their names are different every time. For example, "Y of Untitled 50" and "Y of Untitled 51". How do I delete these columns? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 20:00:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52591#M29774</guid>
      <dc:creator>powerpuff</dc:creator>
      <dc:date>2018-03-05T20:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a column after performing join in jsl?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52596#M29778</link>
      <description>&lt;P&gt;Here is code that will do it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtx = dte &amp;lt;&amp;lt; Join(
	With( dtf ),
	By Matching Column( :Y = :Y ),
	Preserve main table order( 1 ),
	output table( "Joined Table" )
);

dtx &amp;lt;&amp;lt; delete columns( {"Y of Untitle 50", "Y of Untitled 51"} );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you used the "Merge Same Name Columns element in the Join Platform, you can simplify the delete code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtx = dte &amp;lt;&amp;lt; Join(
	With( dtf ),
	By Matching Column( :Y = :Y ),
	Preserve main table order( 1 ),
	output table( "Joined Table" ),
	Merge same name columns(1)
);

dtx &amp;lt;&amp;lt; delete columns( {"Y"} );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Mar 2018 20:14:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52596#M29778</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-05T20:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a column after performing join in jsl?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52600#M29782</link>
      <description>&lt;P&gt;Thanks for the response&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;but is there a way to delete, say for example column number 3 in a table?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 21:32:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52600#M29782</guid>
      <dc:creator>powerpuff</dc:creator>
      <dc:date>2018-03-05T21:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a column after performing join in jsl?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52601#M29783</link>
      <description>&lt;P&gt;1. You need to read the Scripting Guide.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Guide&lt;/P&gt;
&lt;P&gt;It will show you that columns can be referenced by name or by number in most cases.&lt;/P&gt;
&lt;P&gt;2. You need to try things on your own,&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dtx &amp;lt;&amp;lt; delete columns(3);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;works just fine&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 21:45:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52601#M29783</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-03-05T21:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a column after performing join in jsl?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52602#M29784</link>
      <description>&lt;P&gt;A couple of options here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The &lt;A href="https://www.jmp.com/support/help/13-2/Join_Data_Tables_2.shtml#251573" target="_self"&gt;Join operation&lt;/A&gt; will let you specify which columns to output to the resulting table. That may be easier than trying to clean up afterward. Do the join interactively, selecting the columns to output and then examine the JSL in the Source script for the JSL syntax.&lt;/LI&gt;
&lt;LI&gt;The &lt;A href="https://www.jmp.com/support/help/13-2/Data_Tables_3.shtml#1933282" target="_self"&gt;Delete Columns()&lt;/A&gt; message takes a name or column number.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 05 Mar 2018 21:48:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-delete-a-column-after-performing-join-in-jsl/m-p/52602#M29784</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2018-03-05T21:48:44Z</dc:date>
    </item>
  </channel>
</rss>

