i am trying to loop thru a bunch of column names selected by user(col_name)
then from those list, the code will run for each individual column
the problem is i cant seem to make the JMP read the col_name[i] as a column ,it just read it as a string
and state the column cannot be found in the data table
/*****************************************************
*********************** Cpk *********************
*****************************************************/
cpk =expr(
for (k=1,k<=n items(col_name),k++
Process Capability(
Process Variables( col_name[i]) ),
Individual Detail Reports( 1 ),
Capability Box Plots( 0 ),
Goal Plot( 0 ),
Capability Index Plot( 0 ),
{choice[i] << Process Capability Analysis( Histogram( 0 ) )},
Where( :Config == config[k] )
))
);