2 つのファイルを連結して「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));