Hello,
I have been trying to create new columns inside a loop with a couple of variables in the formula. The variables are column names that I am trying to subtract. I have read similar threads with people having a similar issue but none of those solutions have worked in my case. A snippet of my loop:
for (i=1, i<=n, i++,
S="Mean("||vars[i]||")";
S2="Wafer Mean("||vars[i]||")";
ddt << Update(
With(wt),
Match Columns(
:Lot = :Lot,
:Wafer = :Wafer,
:Recipe = :Recipe,
:LayoutSizeY = :LayoutSizeY,
Eval(cats) = Eval(cats)
),
Add Columns from Update table(
wt:S2;
)
);
ddt << New Column("Delta from wafer mean("||vars[i]||")", numeric, continuous, formula(ddt:S-ddt:S2));
ddt << Run formulas;
);
The problem is that JMP is reading it literally and putting S in the formula rather than the string. I tried various eval, evalexpr, expr, substitute commands but none have produced the required results.
Any other suggestions?
Thanks