How can I extract the goal and importance of Response limits for all columns in a data table and put them in a new data table along with the column names? This is the script I am working on. I am able to extract out the Importance. Can anyone direct me as to how I can go ahead and extract the Goal from Response Limits? Thanks
dt = Open("C:\Users\MyFile.jmp");
resp = New Table( "ResponeLimits.jmp",
New Column( "ColName", Character, Nominal, width( 30 ) ),
New Column( "Goal", Character, Nominal, width( 30 ) ),
New Column( "Importance", Numeric, Nominal )
);
nc = N Col( dt );
For( i = 1, i <= nc, i++,
If( Column( dt, i ) << get data type() == "Numeric",
If( !Is Empty( x = Column( dt, i ) << get property(( "Response Limits" ),Show Limits(1) )),
resp << add rows( 1, N Row( resp ) );
//Try( Column( resp, "Goal" )[N Row( resp )] = x["Goal"] );
Try( Column( resp, "Importance" )[N Rows( resp )] = x["Importance"] );
Column( resp, "colname" )[N Rows( resp )] = Column( dt, i ) << get name;
)
)
);