I might be missing something, but from the original question, the issue stated seemed to be the need to be able to reference the subsetted data table for the summarize function. In JMP 12, there is an additional argument available to the summarize function. You can add the data table as the first argument. So all you would need to do is to change the summarize statement to:
Summarize(pt,
a=by(:Para, Route),
//b= by(:Route),
c= count,
meanHT = mean(SITE_VALUE),
stdevHT = stddev(SITE_VALUE)
);
Another observation is that you were using a statement of:
pt = current data table();
What I believe you really wanted to do is to set the current data table to pk, by using:
current data table(pk);
Or am I completely misdirected?
Jim