cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
pankajsync
Level I

Script for generating new column with comma separated and stack

I would like to write a script/addin for the following.

Right now, I am doing this manually by using JMP menu options. I would like to achieve the same using script/addin:

 

By selecting Column= Wafers. I go to Cols--> Utilities--> TEXT to COLUMNS. Then I select Delimeter=, 
It gives me additional columns Wafers1, wafers2 which I then stack. Stack Data colum name= Wafer
I then delete any empty row with Data= empty.
"Next, I add a new column named WaferId. This column concatenates the Lotid string with the Wafer column in the following format: WaferId = "5384" || "-" || Right(Char(:Wafer), 2, "0"). I would like the Lotid to be entered manually by the user in a popup box." In this case. Lot id= "5384"
Groupxx Dep81 xWafers
01CTRTR5, 8
02ETRTR12, 18
03ESKIP1000C PG17, 23
04EENG_CSIO_HCD_35A_1CY_6+91000C PG14, 24
05ESKIP1000C PG15, 19
06EENG_CSIO_HCD_35A_1CY_6+91000C PG13, 16
07ESKIP1000C PG6, 10
08EENG_CSIO_HCD_35A_1CY_6+91000C PG4
09ESKIP1000C PG+850C 5 mins11, 22
10EENG_CSIO_HCD_35A_1CY_6+91000C PG+850C 5 mins1, 2
11ECIL ENG_CSIO_HCD_15A1000C ISSG9, 25
12ECIL ENG_CSIO_HCD_25A1000C ISSG3, 7
13ECIL ENG_CSIO_HCD_45A1000C ISSG20, 21

pankajsync_0-1732569870991.png

 

pankajsync_1-1732569876524.png

pankajsync_2-1732569899960.png

 


Final Output is 

pankajsync_3-1732569910779.png

 

1 REPLY 1
hogi
Level XII

Re: Script for generating new column with comma separated and stack

Please have a look at the log:

hogi_0-1732571876277.png

 

All these steps get recorded by JMP - you don't have to create any code on your own, just follow @Jordan_Hiller 's suggestion to  steal the code from the log ( and make some tiny adjustments. Many tricks can be found in his Discovery Summit presentation)

The part with the "manually entered Lot ID", you can steal from the Scripting Index:
New window - Modal Dialog

hogi_1-1732572216154.png