Hi All
I have pieced together the below code and it creates the Control Charts and brings up the limits but doesn't actually apply them? The control charts also do not seem to have the ability to save back the data table unless i re run it in a new window?
I understand there is a new script function but not sure how it applies to my code?appreciate all help given!
Names Default To Here( 1 );
dt = Current Data Table();
cc = dt << Get Column Names( numeric, "Continuous" );
nw1 = New Window( "Control Charts" );
For( i = 1, i <= N Items( cc ), i++,
Current Data Table( dt );
obj = dt<< Control Chart(
Sample Label( :YYYYMM ),
Group Size( 1 ),
KSigma( 3 ),
Chart Col( As Column( cc[i] ) ),
Chart Type(Individual Measurement) ,
Get Limits (
"C:\Users\Limitsw.jmp"
));
nw1 << append( Report( obj ) );
obj << Close Window;
);