Yes. I used workflow builder.
1)However, the workflow builder did not record "Delete Formula". Instead, it just recorded "Delete Columns" although I've selected "Remove formula" when the JMP Alert prompted.
2) I tried "Delete Formula" as well in my script but it didn't work.
Below is my script;
//Add new column formula to change Wirebond, 2nd Wirebond, Diebond and 2nd Diebond to correct date format
Names Default To Here( 1 );
dt4 = Data Table( "DB.WB(Datasheet)" );
dt4 << New Column("Wirebond.End Date", Numeric, Formula(
(As Date( In Days( :Wirebond End Date) + Informat ("1/1/1900", "<MM></><D></><YYYY><hh><:><mm><:><ss><ampm>")) - In Days( 2 ))));
dt4 << New Column("Diebond.End Date", Numeric, Formula(
(As Date( In Days( :Diebond End Date) + Informat ("1/1/1900", "<MM></><D></><YYYY><hh><:><mm><:><ss><ampm>")) - In Days( 2 ))));
dt4 << New Column("2nd Wirebond.End Date", Numeric, Formula(
(As Date( In Days( :"2nd Wirebond End Date"n) + Informat ("1/1/1900", "<MM></><D></><YYYY><hh><:><mm><:><ss><ampm>")) - In Days( 2 ))));
dt4 << New Column("2nd Diebond.End Date", Numeric, Formula(
(As Date( In Days( :"2nd Diebond End Date"n) + Informat ("1/1/1900", "<MM></><D></><YYYY><hh><:><mm><:><ss><ampm>")) - In Days( 2 ))));
//Change column info: Wirebond.End Date
Data Table( "DB.WB(Datasheet)" ):Wirebond.End Date <<
Input Format( "Format Pattern", "<D></><MM></><YYYY><hh><:><mm><:><ss><ampm>", 0 )
<< Format( "Format Pattern", "<D></><MM></><YYYY><hh><:><mm><:><ss><ampm>", 20, 0 );
//Change column info: Diebond.End Date
Data Table( "DB.WB(Datasheet)" ):Diebond.End Date <<
Input Format( "Format Pattern", "<D></><MM></><YYYY><hh><:><mm><:><ss><ampm>", 0 )
<< Format( "Format Pattern", "<D></><MM></><YYYY><hh><:><mm><:><ss><ampm>", 20, 0 );
//Change column info: 2nd Wirebond.End Date
Data Table( "DB.WB(Datasheet)" ):"2nd Wirebond.End Date"n <<
Input Format( "Format Pattern", "<D></><MM></><YYYY><hh><:><mm><:><ss><ampm>", 0 )
<< Format( "Format Pattern", "<D></><MM></><YYYY><hh><:><mm><:><ss><ampm>", 20, 0 );
//Change column info: 2nd Diebond.End Date
Data Table( "DB.WB(Datasheet)" ):"2nd Diebond.End Date"n <<
Input Format( "Format Pattern", "<D></><MM></><YYYY><hh><:><mm><:><ss><ampm>", 0 )
<< Format( "Format Pattern", "<D></><MM></><YYYY><hh><:><mm><:><ss><ampm>", 20, 0 );
//Remove data with End lot time < Today - 30 days (not required for analysis)
Current Data Table() << Select where( :End Lot Time < (today () - in days(30)) ) << Delete Rows;
//set Label for Machine No, Lot No, Base Part (Device), Recipe, Diebond & Wirebond MC
dt4 << set label columns( :Machine No, :Lot No, :Device, :Recipe, :Diebond MC ID, :Diebond End Date, :Wirebond MC ID, :Wirebond End Date, :Package, :Package Platform );
//Delete columns
Current Data Table() << Data Table( "DB.WB(Datasheet)" )
<< Delete Formula (:Diebond End Date, :"2nd Diebond End Date"n, :Wirebond End Date,:"2nd Wirebond End Date"n);
The log is as below