Subscribe Bookmark RSS Feed

JMP 11 EVAL() or partition problems

scott_87

Community Trekker

Joined:

Feb 22, 2013

Hi Guys I have a problem when I run this code on JMP 11, its crashes out but works on JMP 10.

Basically i run the for loop below that edits columns and it works fine but once i run a partition analysis after, it crashes. Both subsets of code work fine on their own, if i just run the partition analysis it works fine, if i just run the for loop it works fine, so i believe its an interaction between the two on JMP 11. This code works perfect on JMP 10, any ideas?

for(i=1,i<=nitems(colNames),i++,

  if(!contains({"EQUI","SLOT","DOSE"},substr(colNames,1,4)),continue());

  summarize(b=by(column(dt1,colNames)),n=count());

  if(nitems(b)<2 | sum(n<6)<1,continue());

  ex={};insert into(ex,b[loc(n<6)]);

  eval(parse("r=dt1<<get rows where(contains("||char(ex)||",name(\!""||colNames||"\!")))"));

  if(nrow(r)==0,continue());

  column(dt1,colNames)=empty();

);

pat = Partition(

    Y( eval(yCol) ),

    X( eval(xCols) ),

);

9637_aaaajmp.PNG

2 REPLIES
pmroz

Super User

Joined:

Jun 23, 2011

Try putting wait(0); between the two code pieces.  That will allow JMP to catch up to itself.

scott_87

Community Trekker

Joined:

Feb 22, 2013

I tried wait(0); but no joy, it seems like a JMP 11 bug, here's the error message:

9638_aajmp.PNG