cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
uwe_hiss
Level II

JSL: How can I set the variables for process capability from a list?

Hello,

my list of dataColName contains the column headers that I want to use as variables for process capability.

dataColName = dt_data << GetColumnNames( Numeric, String );

repWin = New Window( sTableName, container = V List Box() );

For( k = 1, k <= N Items( dataColName ), k++,

  content = V List Box(

  dt_data_sub <<  Process Capability(

  //Process Variables( :Assay, :Dissolution, :Weight ),

  Process Variables( dataColName ),

  Individual Detail Reports( 1 ),

  Capability Box Plots( 0 ),

  Within Sigma Summary Report( 1 ),

  Name( "AIAG (Ppk) Labeling" )(0),

  Goal Plot( 0, Show Within Sigma Points( 1 ), Show Overall Sigma Points( 0 ) ),

  {dataColName << Process Capability Analysis(

  Overall Sigma Capability( 0 ),

  Nonconformance( 0 ),

  Histogram( 0 ))}

  )

  );

  container << Append( content );

);


Why tells me the log:

"Specified Column not found in data table. in access or evaluation of 'List' , {/*###*/dataColName, k}

Process Capability cannot be launched because none of the processes can be found in the data table." ?


It works fine in

Control Chart (Chart Col (dataColName, ...


regards,

Uwe

1 ACCEPTED SOLUTION

Accepted Solutions
uwe_hiss
Level II

Re: JSL: How can I set the variables for process capability from a list?

Goal

Process Variables( { dataColName } ),

View solution in original post

3 REPLIES 3
uwe_hiss
Level II

Re: JSL: How can I set the variables for process capability from a list?

Goal

Process Variables( { dataColName } ),

ms
Super User (Alumni) ms
Super User (Alumni)

Re: JSL: How can I set the variables for process capability from a list?

I don't know why, but from I've noticed that whether an argument is evaluated or not varies among platforms.

Here, the argument of Process Variables() appears not to be evaluated; a column name is explicitly required. However using a variable should work if the evaluation is forced with Eval()

Eval(dataColName[k])

uwe_hiss
Level II

Re: JSL: How can I set the variables for process capability from a list?

Hi MS,

thanks for the tip.

I found out, it works with additional braces.


Uwe