두 파일을 연결하여 "combinedTable"이라는 테이블을 만들고 있는데 잘 저장됩니다. 하지만 연결된 테이블을 정렬하고 싶은데, 정렬 함수를 사용하면 정렬되지 않은 "combinedTable"을 저장하는 동안 팝업되는 제목 없는 새 테이블이 생성됩니다. 스크립트에 무슨 문제가 있는 걸까요?
<....
extractLast9Chars = Function({filename},
Substr(filename, Length(filename) - 12, 11)
);
// Create a dictionary to store files by their last 9 characters
fileDict = Associative Array();
// Populate the dictionary with files from the first folder
For(i = 1, i <= N Items(files1), i++,
last9 = extractLast9Chars(files1[i]);
fileDict[last9] = folder1 || "/" || files1[i];
);
// Check for matching files in the second folder and combine them
For(j = 1, j <= N Items(files2), j++,
last9 = extractLast9Chars(files2[j]);
If(Contains(fileDict, last9),
// Open the files
file1 = Open(fileDict[last9]);
file2 = Open(folder2 || "/" || files2[j]);
// Combine the data tables
combinedTable = Concatenate(file1, file2);
combinedTable << select where(Col Min(Row(), :lot, :wfr, :site) < Row()) << delete rows;
combinedTable << sort(By(:wfr, :Site));
//save table with new name in existing foler
newTableName = files2[j] || "_combined";
filePath = "C:\temp\66k_Combined\" || newTableName;
combinedTable << save(filePath);
// Close the individual files
Close(file1, NoSave);
Close(file2, NoSave);
Close(combinedTable, NoSave);
);
);
>
바꾸기 테이블이 없습니다

JMP 테이블에서 정렬을 수행하면

향상된 로그에서 JMP가 수행하는 작업을 확인할 수 있습니다.
// Sort data table
Data Table("Big Class") << Sort(By(:height), Replace Table, Order(Ascending));