cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
0 Kudos

Allow Update platform to create new columns if they already exist in the table to be updated

What inspired this wish list request? 

Using JMP's Update platform and getting error messages.

 

 

What is the improvement you would like to see? 

If user has defined columns to be added and chose NOT to replace any of those added columns, add them as new columns with index.

 

Error:

 

Names Default To Here(1);

dt1 = Open("$SAMPLE_DATA/Big Class.jmp", Invisible);
dt2 = Open("$SAMPLE_DATA/Big Class Families.jmp", Invisible);

dt1 << Update(
	With(dt2),
	Match Columns(:name = :name),
	Add Columns from Update Table(:age),
	Replace Columns in Main Table(None)
);

Close(dt1, no save);
Close(dt2, no save);

but I would like to end up with two age columns: original age and newly created age 2 from the dt2.

 

 

 

Why is this idea important? 

Makes using Update more flexible without having to rely on renaming columns

 

 

2 Comments
Status changed to: Acknowledged
 
hogi
Level XII

you could use Tables/Join instead of Tables/Update.

 

Join provides an option to choose between merging columns and keeping both columns.