Subscribe Bookmark RSS Feed

Sorting a column with a script

whom

Community Trekker

Joined:

Jun 23, 2011

I have a file (mydata.jmp) and I manually sort the Temperature column (right click, and then Sort).

I'm trying to automate this in a jmp script.  what's the correct command so the column is sorted and the new file retains the original file name.  I have tried a few commands and the result of the sort command creates a new unnamed file, which is NOT what I want.  

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

Try this syntax:

dt << sort( by( col ), Replace Table );

2 REPLIES
Solution

Try this syntax:

dt << sort( by( col ), Replace Table );

whom

Community Trekker

Joined:

Jun 23, 2011

Adding the Replace Table did the trick.  Thanks!