<?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 Column Missing after Join 2 data tables into 1 merge data table using scripting in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Column-Missing-after-Join-2-data-tables-into-1-merge-data-table/m-p/470153#M71427</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to join 2 data tables into 1 merge data table using scripting.&lt;/P&gt;
&lt;P&gt;I already joint the 2 data tables into 1 joint data table manually, so I copied the same script from the joint data table into my master script.&lt;/P&gt;
&lt;P&gt;Somehow, when I run the master script, all the chosen columns from dt2 not included in the joint data table.&lt;/P&gt;
&lt;P&gt;Why it is not working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "AVIYield (Datasheet)" ) &amp;lt;&amp;lt; Join(
	With( Data Table( "Process_History_LotNoListingBeforeAVI" ) ),
	Update,
	Select(
		:Machine Type, :Machine No, :Lot No, :Device, :Recipe, :Start Lot Time, :End Lot Time,
		:Total Inspected Unit, :Total Dummy Unit, :Total Reject Unit,
		:Overall Yield Include dummy, :Yield Exclude dummy, :FBMissing Bond, :FBAccuracy,
		:FBBroken Wire, :FBBall Size, :SBMissing Bond, :SBPlacement, :SBBroken Wire,
		:SBWedge Size, :WTDeviation, :WTBroken Wire, :Die Shift, :Die Surface, :Die Rotate,
		:Die Epoxy Insuff, :Die Expoxy Excess, :Die Substrate, :SBBall Missing Bond,
		:SBBall Broken Wire, :SBBall Accuracy, :Name( "NU-No Unit" ), :Name( "DU-Destroy Unit" ),
		:Name( "ID-Incomplete Die" ), :Name( "DED-Die Edge Defect" ),
		:Name( "DP-Die Placement" ), :Name( "EG-Excessive Glue" ),
		:Name( "IG-Insufficient Glue" ), :Name( "DO-Die Orientation" ),
		:Name( "NWB-No Wire Bond" ), :Name( "MW-Multiple Wire" ), :Name( "BP-Ball Placement" ),
		:Name( "DW-Distorted Wire" ), :Name( "IW-Incomplete Wire" ),
		:Name( "FM-Foreign Material" ), :Name( "MP-Missing Phosphor" ), :PackageFamily
	),
	SelectWith( :Process Oper, :Process Mach No, :In Time, :Out Time ),
	By Matching Columns( :Lot No = :Lot No ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 1, 0 ),
	Preserve main table order( 1 ),
	Output Table( "JoinT" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_1-1647411504725.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40855iD1C4E003272B6AF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WebDesignesCrow_1-1647411504725.png" alt="WebDesignesCrow_1-1647411504725.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:13:17 GMT</pubDate>
    <dc:creator>WebDesignesCrow</dc:creator>
    <dc:date>2023-06-09T18:13:17Z</dc:date>
    <item>
      <title>Column Missing after Join 2 data tables into 1 merge data table using scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Missing-after-Join-2-data-tables-into-1-merge-data-table/m-p/470153#M71427</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to join 2 data tables into 1 merge data table using scripting.&lt;/P&gt;
&lt;P&gt;I already joint the 2 data tables into 1 joint data table manually, so I copied the same script from the joint data table into my master script.&lt;/P&gt;
&lt;P&gt;Somehow, when I run the master script, all the chosen columns from dt2 not included in the joint data table.&lt;/P&gt;
&lt;P&gt;Why it is not working?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table( "AVIYield (Datasheet)" ) &amp;lt;&amp;lt; Join(
	With( Data Table( "Process_History_LotNoListingBeforeAVI" ) ),
	Update,
	Select(
		:Machine Type, :Machine No, :Lot No, :Device, :Recipe, :Start Lot Time, :End Lot Time,
		:Total Inspected Unit, :Total Dummy Unit, :Total Reject Unit,
		:Overall Yield Include dummy, :Yield Exclude dummy, :FBMissing Bond, :FBAccuracy,
		:FBBroken Wire, :FBBall Size, :SBMissing Bond, :SBPlacement, :SBBroken Wire,
		:SBWedge Size, :WTDeviation, :WTBroken Wire, :Die Shift, :Die Surface, :Die Rotate,
		:Die Epoxy Insuff, :Die Expoxy Excess, :Die Substrate, :SBBall Missing Bond,
		:SBBall Broken Wire, :SBBall Accuracy, :Name( "NU-No Unit" ), :Name( "DU-Destroy Unit" ),
		:Name( "ID-Incomplete Die" ), :Name( "DED-Die Edge Defect" ),
		:Name( "DP-Die Placement" ), :Name( "EG-Excessive Glue" ),
		:Name( "IG-Insufficient Glue" ), :Name( "DO-Die Orientation" ),
		:Name( "NWB-No Wire Bond" ), :Name( "MW-Multiple Wire" ), :Name( "BP-Ball Placement" ),
		:Name( "DW-Distorted Wire" ), :Name( "IW-Incomplete Wire" ),
		:Name( "FM-Foreign Material" ), :Name( "MP-Missing Phosphor" ), :PackageFamily
	),
	SelectWith( :Process Oper, :Process Mach No, :In Time, :Out Time ),
	By Matching Columns( :Lot No = :Lot No ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 1, 0 ),
	Preserve main table order( 1 ),
	Output Table( "JoinT" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WebDesignesCrow_1-1647411504725.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40855iD1C4E003272B6AF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WebDesignesCrow_1-1647411504725.png" alt="WebDesignesCrow_1-1647411504725.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:13:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Missing-after-Join-2-data-tables-into-1-merge-data-table/m-p/470153#M71427</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2023-06-09T18:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Column Missing after Join 2 data tables into 1 merge data table using scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Missing-after-Join-2-data-tables-into-1-merge-data-table/m-p/470437#M71460</link>
      <description>&lt;P&gt;Hello! If you look at the documentation for the Join function (&lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/join-data-tables.shtml?os=win&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#ww251573" target="_self"&gt;here&lt;/A&gt;) it states that "&lt;SPAN&gt;when you use&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="command"&gt;Update main table with data from second table&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="command"&gt;Select Columns for joined table&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;is not applicable." So it will just look to update the existing columns you have in the main table. Try either not selecting that Update command or using the separate Tables &amp;gt; Update tool to try and accomplish your goal.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 17:56:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Missing-after-Join-2-data-tables-into-1-merge-data-table/m-p/470437#M71460</guid>
      <dc:creator>Joseph_Reese</dc:creator>
      <dc:date>2022-03-16T17:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Column Missing after Join 2 data tables into 1 merge data table using scripting</title>
      <link>https://community.jmp.com/t5/Discussions/Column-Missing-after-Join-2-data-tables-into-1-merge-data-table/m-p/470654#M71480</link>
      <description>&lt;P&gt;Thanks a lot. After I did not select that update command but continue from the 2nd table, it works.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 08:29:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Column-Missing-after-Join-2-data-tables-into-1-merge-data-table/m-p/470654#M71480</guid>
      <dc:creator>WebDesignesCrow</dc:creator>
      <dc:date>2022-03-17T08:29:07Z</dc:date>
    </item>
  </channel>
</rss>

