@헬랄 에 물었다 다른 폴더에서 여러 CSV 파일 가져오기, 값 업데이트 및 다른 이름으로 CSV 저장 몇 가지 작업을 수행하는 방법: 디렉토리 트리에서 많은 CSV 파일을 수집하고 편집하고 파일을 원래 디렉토리에 약간 이름이 변경된 CSV로 저장합니다. 이 JSL을 통해 시작할 수 있습니다.
디렉토리 삭제에 주의하십시오! 코드에서 사용하지 마십시오!
// JMP 15 or later required; JMP 14 does not have the recursive MFI option
dir = Convert File Path( "$temp/deletemeCSV/" ); // keep the paths in variables
// Delete Directory( dir ); // CAREFUL!!!!!
Create Directory( dir ); // making dummy data
subdira = Convert File Path( dir || "argyle/" ); // dummy sub dirs
subdirb = Convert File Path( dir || "plaid/" );
Create Directory( subdira );
Create Directory( subdirb );
dt = Open( "$sample_data/big class.jmp" ); // use this for dummy data
dt:name[1] = "katieA"; // make the dummy files distinct
dt << save( subdira || "a.csv" );
dt:name[1] = "katieB";
dt << save( subdirb || "b.csv" );
Close( dt, nosave ); // done with big class
dtlist = // MFI reurns a { list } of data tables, even if only one
Multiple File Import( // I removed a lot of default parameters
<<SET folder=""></SET>