キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
言語を選択 翻訳バーを非表示
tom_e_dunn
Level II

update table using JSL without adding missing columns

I'm trying to update the values of a specific column in a data table using values in another data table. The update function seems like the logical choice but it always seems to add extra unmatched columns to the updated table. From the update utility there is an option for this

8498_Capture.PNG

However there isn't any mention of this in either the scripting index

8499_Capture.PNG

or in the help search. I've tried

 

 

dt << update(
     with(dt2),
     match(:name=:name),
     ignore missing,
     add columns from update(none)
);

 

 

but that doesn't seem to work. Does anyone know what the correct option is for this?

1 件の受理された解決策

受理された解決策
Jeff_Perkinson
Community Manager Community Manager

Re: update table using JSL without adding missing columns

You're almost there!

 

Looking at the Source script that's added to my table after I do an Update with that option I see that the script is:

Data Table( "Trial1.jmp" ) << Update(
  With( Data Table( "Little.jmp" ) ),
  Match Columns( :popcorn = :popcorn, :oil amt = :oil, :batch = :batch ),
  Add Columns from Update table( None )
);

8501_JMPScreenSnapz001.png

 

-Jeff

-Jeff

元の投稿で解決策を見る

3件の返信3
Jeff_Perkinson
Community Manager Community Manager

Re: update table using JSL without adding missing columns

You're almost there!

 

Looking at the Source script that's added to my table after I do an Update with that option I see that the script is:

Data Table( "Trial1.jmp" ) << Update(
  With( Data Table( "Little.jmp" ) ),
  Match Columns( :popcorn = :popcorn, :oil amt = :oil, :batch = :batch ),
  Add Columns from Update table( None )
);

8501_JMPScreenSnapz001.png

 

-Jeff

-Jeff
tom_e_dunn
Level II

Re: update table using JSL without adding missing columns

Thanks Jeff!

xxvvcczz
Level III

Re: update table using JSL without adding missing columns

realized my update table had multiple entries for the same match col.

おすすめの記事